------- Additional Comments From hjl at lucon dot org 2006-09-21 22:33 -------
A simple testcase:
[EMAIL PROTECTED] empty-8]$ cat foo.s
.text
.global _start
_start:
.long __data_start
.long _edata
[EMAIL PROTECTED] empty-8]$ cat foo.t
SECTIONS
{
.text 0x00000000: { *(.text) }
.data 0x20000000:
{
__data_start = . ;
*(.data)
}
/* _edata = ADDR (.data) + SIZEOF (.data); */
_edata = .;
/DISCARD/ : { *(.*) }
}
[EMAIL PROTECTED] 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
[EMAIL PROTECTED] 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-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils