[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/4304] New: ld --fatal-warnings doesn't work
From: |
robert at linuxfromscratch dot org |
Subject: |
[Bug ld/4304] New: ld --fatal-warnings doesn't work |
Date: |
31 Mar 2007 17:50:39 -0000 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/4304] New: ld --fatal-warnings doesn't work,
robert at linuxfromscratch dot org <=