]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[GOLD] Add --secure-plt option for ppc32
authorAlan Modra <amodra@gmail.com>
Mon, 9 Jan 2017 23:54:09 +0000 (10:24 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Jan 2017 01:20:07 +0000 (11:50 +1030)
commitf159cdb61155d699f5aff2a9fbad8b787a7fe10c
treef86a44b39d08ad07be0349eaf3cb8b1f11588833
parenteaa38cfd42fe323fb7868e676ced7419bc5eec12
[GOLD] Add --secure-plt option for ppc32

Added just to accept, and ignore.  gcc since 2015-10-21, when
configured with --enable-secureplt passes this option to the linker.
As powerpc gold cannot link --bss-plt code successfully, gold needs to
accept the option or the gcc specs file needs to be changed.

The patch also make gold detect --bss-plt code and error out rather
than producing a binary that crashes.

* options.h: Add --secure-plt option.
* powerpc.cc (Target_powerpc::Scan::local): Detect and error
on -fPIC -mbss-plt code.
(Target_powerpc::Scan::global): Likewise.
gold/ChangeLog
gold/options.h
gold/powerpc.cc