bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/3223] ld fails to link correct variables from linker script.


From: carlos at codesourcery dot com
Subject: [Bug ld/3223] ld fails to link correct variables from linker script.
Date: 18 Sep 2006 17:38:02 -0000

------- Additional Comments From carlos at codesourcery dot com  2006-09-18 
17:38 -------
Tested with the binutils-csl-2_17-branch

arm-none-eabi-as --gdwarf-2 test.s -o test.o
arm-none-eabi-ld -Ttext 0x00000000 -Tdata 0x20000000 -Map=test.map -o test.elf
test.o
arm-none-eabi-objdump -d test.elf

test.elf:     file format elf32-littlearm

Disassembly of section .text:

00000000 <_start>:
   0:   e59f1018        ldr     r1, [pc, #24]   ; 20 <.text+0x20>
   4:   e59f2018        ldr     r2, [pc, #24]   ; 24 <.text+0x24>
   8:   e59f3018        ldr     r3, [pc, #24]   ; 28 <.text+0x28>

0000000c <LoopRel>:
   c:   e1520003        cmp     r2, r3
  10:   34910004        ldrcc   r0, [r1], #4
  14:   34820004        strcc   r0, [r2], #4
  18:   3afffffb        bcc     c <LoopRel>

0000001c <main>:
  1c:   eafffffe        b       1c <main>
  20:   0000002c        andeq   r0, r0, ip, lsr #32
  24:   20000000        andcs   r0, r0, r0
  28:   0000012c        andeq   r0, r0, ip, lsr #2

The value of "__data_start" is loaded from the constant pool at
".text+0x24", whose value is "0x20000000" as expected.

What is the value you expect and what does objdump produce?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3223

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]