[Top][All Lists]
[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.
- [Bug ld/3223] New: ld fails to link correct variables from linker script., sjo at anglia dot com, 2006/09/18
- [Bug ld/3223] ld fails to link correct variables from linker script.,
carlos at codesourcery dot com <=
- [Bug ld/3223] ld fails to link correct variables from linker script., carlos at codesourcery dot com, 2006/09/18
- [Bug ld/3223] ld fails to link correct variables from linker script., sjo at anglia dot com, 2006/09/19
- [Bug ld/3223] ld fails to link correct variables from linker script., hjl at lucon dot org, 2006/09/21
- [Bug ld/3223] ld fails to link correct variables from linker script., hjl at lucon dot org, 2006/09/21
- [Bug ld/3223] ld fails to link correct variables from linker script., sjo at anglia dot com, 2006/09/22
- [Bug ld/3223] ld fails to link correct variables from linker script., hjl at lucon dot org, 2006/09/22
- [Bug ld/3223] ld fails to link correct variables from linker script., hjl at lucon dot org, 2006/09/23
- [Bug ld/3223] ld fails to link correct variables from linker script., hjl at lucon dot org, 2006/09/26
- [Bug ld/3223] ld fails to link correct variables from linker script., hjl at lucon dot org, 2006/09/27
- [Bug ld/3223] ld fails to link correct variables from linker script., hjl at lucon dot org, 2006/09/27