------- Additional Comments From hjl dot tools at gmail dot com 2010-01-05
16:43 -------
A smaller testcase:
---
[...@gnu-6 pr11133]$ cat test.c
extern const int *__start__foo;
int foo __attribute__((__section__("_foo"))) = 1;
int
_start ()
{
return *__start__foo;
}
[...@gnu-6 pr11133]$ make
cc -c -o test.o test.c
./ld -e _start -o bar test.o
./ld -e _start --gc-sections -o foo test.o
test.o: In function `_start':
test.c:(.text+0x7): undefined reference to `__start__foo'
make: *** [foo] Error 1
[...@gnu-6 pr11133]$
---
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Static linking with gc- |Static linking with gc-
|sections deletes |sections deletes sections
|__libc_atexit causing |with __start/__stop
|problems with stdio buffer |reference
|flush to file. |
http://sourceware.org/bugzilla/show_bug.cgi?id=11133
------- 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