------- Additional Comments From hjl dot tools at gmail dot com 2010-03-18
18:31 -------
[...@gnu-6 tmp]$ cat x.s
.section .preinit_array.01000,"aw",%progbits
.align 4
.word 0
[...@gnu-6 tmp]$ gcc -c x.s
[...@gnu-6 tmp]$ ld -shared x.o
[...@gnu-6 tmp]$ readelf -S --wide x.o
There are 8 section headers, starting at offset 0x88:
Section Headers:
[Nr] Name Type Address Off Size ES Flg
Lk Inf Al
[ 0] NULL 0000000000000000 000000 000000 00
0 0 0
[ 1] .text PROGBITS 0000000000000000 000040 000000 00 AX
0 0 4
[ 2] .data PROGBITS 0000000000000000 000040 000000 00 WA
0 0 4
[ 3] .bss NOBITS 0000000000000000 000040 000000 00 WA
0 0 4
[ 4] .preinit_array.01000 PROGBITS 0000000000000000 000040 000002 00
WA 0 0 4
[ 5] .shstrtab STRTAB 0000000000000000 000042 000041 00
0 0 1
[ 6] .symtab SYMTAB 0000000000000000 000288 000078 18
7 5 8
[ 7] .strtab STRTAB 0000000000000000 000300 000001 00
0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
[...@gnu-6 tmp]$
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Linker shouldn't combine |Linker doesn't support
|.preinit_array |priority with .preinit_array
http://sourceware.org/bugzilla/show_bug.cgi?id=11398
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils