https://sourceware.org/bugzilla/show_bug.cgi?id=22492
Bug ID: 22492 Summary: Incorrect note section alignment Product: binutils Version: 2.30 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-tools-1 gas]$ cat /tmp/x.s .version "Version 1.0" [hjl@gnu-tools-1 gas]$ gcc -c /tmp/x.s -m32 [hjl@gnu-tools-1 gas]$ readelf -SW x.o There are 8 section headers, starting at offset 0xd0: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS 00000000 000034 000000 00 AX 0 0 1 [ 2] .data PROGBITS 00000000 000034 000000 00 WA 0 0 1 [ 3] .bss NOBITS 00000000 000034 000000 00 WA 0 0 1 [ 4] .note NOTE 00000000 000034 000018 00 0 0 1 [ 5] .symtab SYMTAB 00000000 00004c 000050 10 6 5 4 [ 6] .strtab STRTAB 00000000 00009c 000001 00 0 0 1 [ 7] .shstrtab STRTAB 00000000 00009d 000032 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings), I (info), L (link order), O (extra OS processing required), G (group), T (TLS), C (compressed), x (unknown), o (OS specific), E (exclude), p (processor specific) [hjl@gnu-tools-1 gas]$ obj_elf_version pads note section to 4 byte alignment: frag_align (2, 0, 0); But it doesn't set section alignment to 4 bytes. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils