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
--
What|Removed |Added
AssignedTo|unassigned at sources dot |mgretton at sourceware dot
|redhat dot com |org
Status|NEW
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
--- 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
--- 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.