[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
[arm-gnu] about -Wl,--gc-sections and static link
- To: arm-gnu@xxxxxxxxxxxxxxxx <arm-gnu@xxxxxxxxxxxxxxxx>
- Subject: [arm-gnu] about -Wl,--gc-sections and static link
- From: Tomoyoshi ASANO <asa@xxxxxxxxxxx>
- Date: Tue, 02 Sep 2008 08:16:58 +0900
Hello all,
I have some problems of static link with --Wl,--gc-sections.
I found a simple example.
# cat test.c
main()
{
printf("HELLO.");
}
# arm-none-linux-gnueabi -o test1 -static test.c
# arm-none-linux-gnueabi -o test2 -static -Wl,--gc-sections test.c
On ARMv5te target board,
# ./test1
HELLO.#
# ./test2
#
test2 does not output string.
It seems the same problem.
http://lists.debian.org/debian-glibc/2005/12/msg00242.html
Is this ld or glibc problem?
-- あさの
|