[Bug ld/4563] --gc-sections doesn't work as expected.

2007-05-29 Thread pluto at agmk dot net
--- Additional Comments From pluto at agmk dot net 2007-05-29 20:39 --- Created an attachment (id=1871) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1871&action=view) testcase -- http://sourceware.org/bugzilla/show_bug.cgi?id=4563 --- You are receiving this mail becaus

[Bug ld/4563] New: --gc-sections doesn't work as expected.

2007-05-29 Thread pluto at agmk dot net
$ make g++ -fpic -O1 -g0 -ffunction-sections -fdata-sections *.cpp -c g++ -Wl,--gc-sections -Wl,--print-gc-sections -z defs lib2.o \ lib1.o -shared -o lib2.so (...) /usr/bin/ld: Removing unused section '.text' in file 'lib1.o' /usr/bin/ld: Removing unused section '.data' in file 'lib1.o' /usr/b