bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27093] should BFD not produce `-z norelro ignored` when target e


From: amodra at gmail dot com
Subject: [Bug ld/27093] should BFD not produce `-z norelro ignored` when target emulation is unsupported?
Date: Sat, 19 Dec 2020 06:50:58 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27093

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
We error for other unsupported options, for example an --enable-targets=all ld

~/build/gas/all/ld$ ./ld-new -m v850 --enable-new-dtags empty.o
./ld-new: unrecognised option '--enable-new-dtags'
./ld-new: use the --help option for usage information
~/build/gas/all/ld$ echo $?
1
~/build/gas/all/ld$ ./ld-new -m v850 --disable-new-dtags empty.o
./ld-new: unrecognised option '--disable-new-dtags'
./ld-new: use the --help option for usage information
~/build/gas/all/ld$ echo $?
1

It has been that way for a long time.  And since binutils-2.22

~/build/gas-2.22/all/ld$ ./ld-new -m v850 -z norelro empty.o
./ld-new: warning: -z norelro ignored.

Yes, I agree it might have been nicer if -z norelro did not warn, but it's been
that way since 2011 and arguably many other options should be treated the same
if unsupported.  So I'm not inclined to see this as a bug that needs fixing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]