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.

-- 
           Summary: ld --fatal-warnings doesn't work
           Product: binutils
           Version: 2.18 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: robert at linuxfromscratch dot org
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=4304

------- 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
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to