[Bug ld/11897] New: Linking of objects with and without attributes sections is incorrect

2010-08-10 Thread mgretton at sourceware dot org
Take the following two test files: @ test1.s .syntax unified .thumb .global foo foo: bx lr @ end of test1.s @ test2.s .syntax unified .thumb .cpu cortex-m0 bar: bl foo @ end of test2.s Build as follows: arm-none-eabi-as test1.s -o

[Bug ld/11897] Linking of objects with and without attributes sections is incorrect

2010-08-10 Thread mgretton at sourceware dot org
-- What|Removed |Added AssignedTo|unassigned at sources dot |mgretton at sourceware dot |redhat dot com |org Status|NEW

[Bug gold/11899] New: segments not sorted by LMA

2010-08-10 Thread nickc at redhat dot com
The code in Layout::set_segment_offsets() expects the segments to be sorted by their load address, but currently they are sorted by the LMA of their first section. To reproduce: % cat phdr.s .text .word 1 .data .word 2 % cat phdrs.ld PHDRS { headers

[Bug gold/11899] segments not sorted by LMA

2010-08-10 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2010-08-10 11:19 --- Created an attachment (id=4922) -- (http://sourceware.org/bugzilla/attachment.cgi?id=4922action=view) Sort segments by their load address -- http://sourceware.org/bugzilla/show_bug.cgi?id=11899 --- You

[Bug gold/11899] segments not sorted by LMA

2010-08-10 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2010-08-10 11:20 --- Proposed patch uploaded. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11899 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is.