[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: |
hjl at lucon dot org |
Subject: |
[Bug ld/3223] ld fails to link correct variables from linker script. |
Date: |
21 Sep 2006 22:33:42 -0000 |
------- Additional Comments From hjl at lucon dot org 2006-09-21 22:33 -------
A simple testcase:
address@hidden empty-8]$ cat foo.s
.text
.global _start
_start:
.long __data_start
.long _edata
address@hidden empty-8]$ cat foo.t
SECTIONS
{
.text 0x00000000: { *(.text) }
.data 0x20000000:
{
__data_start = . ;
*(.data)
}
/* _edata = ADDR (.data) + SIZEOF (.data); */
_edata = .;
/DISCARD/ : { *(.*) }
}
address@hidden empty-8]$ make
as -o foo.o foo.s
ld -Tfoo.t -o foo foo.o
nm foo | grep __data_start
0000000020000000 A __data_start
nm foo | grep _edata
0000000000000008 A _edata
address@hidden empty-8]$
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl at lucon dot org
GCC build triplet|i686-pc-cygwin |
GCC host triplet|i686-pc-cygwin |
GCC target triplet|arm-elf |
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, 2006/09/18
- [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 <=
- [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