History

section alignment

Alignment of unknown sections changed from 32 to PTR_SIZE This is gcc/pcc default value. This helps to use tcc as linux kernel compiler.

seyko committed 10 years ago

Commit edcb15c1 parent 8db7a0f1 file · +1 −1Browse files

Unified · Split

libtcc.c+1−1
@@ -511,7 +511,7 @@ ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh · 510 unmodified lines
511 sec->sh_addralign = 1;511 sec->sh_addralign = 1;
512 break;512 break;
513 default:513 default:
514 sec->sh_addralign = 32; /* default conservative alignment */514 sec->sh_addralign = PTR_SIZE; /* gcc/pcc default aligment */
515 break;515 break;
516 }516 }
517 517

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t