View Bug Activity | Format For Printing
Hello. To reproduce this bug get yourself a copy of Gzip source and do: env CFLAGS="-fpie -O2" \ LDFLAGS="-Wl,--warn-shared-textrel -Wl,--fatal-warnings -pie" \ ./configure && make Then you should get something like this: gcc -std=gnu99 -fpie -O2 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -o gzip bits.o crypt.o deflate.o gzip.o inflate.o lzw.o trees.o unlzh.o unlzw.o unpack.o unzip.o util.o zip.o lib/libgzip.a /tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in a shared object. and you might notice the warning is not fatal... Tested on binutils-2.17 and binutils-070315. P.S. I also noticed adding -Werror and -Wfatal-errors GCC flags had no effect.
A patch is posted at http://sourceware.org/ml/binutils/2007-04/msg00057.html
A simple patch is at http://sourceware.org/ml/binutils/2007-04/msg00059.html
Fixed by http://sourceware.org/ml/binutils/2007-04/msg00061.html