mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
4e5391148d
The AArch64 linker option to turn on BTI (--force-bti) warns in case there are input objects which have a missing GNU NOTE section for BTI. This patch is trying to improve the warnings that come out. In order to do so, I propose adding a new argument to elf_merge_gnu_properties and the backend function merge_gnu_properties. This new argument makes sure that we now pass both the objects along with the properties to which they belong to. The x86 backend function has also been updated to match this change. *** bfd/ChangeLog *** 2019-03-21 Sudakshina Das <sudi.das@arm.com> * elf-bfd.h (struct elf_backend_data): Add argument to merge_gnu_properties. * elf-properties.c (elf_merge_gnu_properties): Add argument to itself and while calling bed->merge_gnu_properties. (elf_merge_gnu_property_list): Update the calls for elf_merge_gnu_properties. * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling of --force-bti warning and add argument. * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add warning. * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument. * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in declaration. *** ld/ChangeLog *** 2019-03-21 Sudakshina Das <sudi.das@arm.com> * testsuite/ld-aarch64/aarch64-elf.exp: Add new test. * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section. * testsuite/ld-aarch64/bti-plt-6.d: Update warning. * testsuite/ld-aarch64/bti-plt-7.d: Likewise. * testsuite/ld-aarch64/bti-warn.d: New test.
370 lines
14 KiB
Plaintext
370 lines
14 KiB
Plaintext
2019-03-21 Sudakshina Das <sudi.das@arm.com>
|
||
|
||
* testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
|
||
* testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
|
||
* testsuite/ld-aarch64/bti-plt-6.d: Update warning.
|
||
* testsuite/ld-aarch64/bti-plt-7.d: Likewise.
|
||
* testsuite/ld-aarch64/bti-warn.d: New test.
|
||
|
||
2019-03-21 Alan Modra <amodra@gmail.com>
|
||
|
||
* testsuite/ld-elf/fini2.s: Reduce alignment.
|
||
* testsuite/ld-elf/fini3.s: Likewise.
|
||
* testsuite/ld-elf/finin.s: Likewise.
|
||
* testsuite/ld-elf/init2.s: Likewise.
|
||
* testsuite/ld-elf/init3.s: Likewise.
|
||
* testsuite/ld-elf/initn.s: Likewise.
|
||
* testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
|
||
* testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
|
||
|
||
2019-03-21 Alan Modra <amodra@gmail.com>
|
||
|
||
* scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
|
||
* scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
|
||
* scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
|
||
* scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
|
||
* scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
|
||
* scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
|
||
* scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
|
||
* scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
|
||
* scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
|
||
* scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
|
||
* scripttempl/ft32.sc, * scripttempl/i386beos.sc,
|
||
* scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
|
||
* scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
|
||
* scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
|
||
* scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
|
||
* scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
|
||
* scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
|
||
SORT_NONE to .init and .fini wildcards.
|
||
* scripttempl/elf32xc16x.sc,
|
||
* scripttempl/elf32xc16xl.sc,
|
||
* scripttempl/elf32xc16xs.sc: Add .fini wildcard.
|
||
* scripttempl/elf_chaos.sc: Add .init output section.
|
||
* scripttempl/elfd30v.sc: Remove duplicate .init.
|
||
* scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
|
||
* scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
|
||
duplicate .init, and add .fini wildcard.
|
||
* scripttempl/ppcpe.sc (INIT, FINI): Delete.
|
||
* ldlang.c (update_wild_statements): Special case .init and
|
||
.fini in the wildcard, not the output section.
|
||
|
||
2019-03-21 Alan Modra <amodra@gmail.com>
|
||
|
||
* emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
|
||
|
||
2019-03-21 Alan Modra <amodra@gmail.com>
|
||
|
||
* ldlang.c (lang_size_sections_1): Set SEC_KEEP on
|
||
create_object_symbols_section.
|
||
* testsuite/ld-elf/pr22319.d: Don't xfail dlx.
|
||
|
||
2019-03-18 Alan Modra <amodra@gmail.com>
|
||
|
||
* testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
|
||
* testsuite/ld-elf/pr21884.d: Remove csky from xfails.
|
||
* testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
|
||
* testsuite/ld-unique/pr21529.d: Remove csky from xfails
|
||
|
||
2019-03-15 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR 24262
|
||
* ld.texi (-plugin): Correct the path used to locate linker
|
||
plugins.
|
||
|
||
2019-03-13 Sudakshina Das <sudi.das@arm.com>
|
||
|
||
* NEWS: Document --pac-plt.
|
||
* emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
|
||
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
|
||
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
|
||
* testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
|
||
* testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
|
||
* testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
|
||
* testsuite/ld-aarch64/pac-plt-1.d: New test.
|
||
* testsuite/ld-aarch64/pac-plt-2.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
|
||
|
||
2019-03-13 Sudakshina Das <sudi.das@arm.com>
|
||
Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||
|
||
* NEWS: Document --force-bti.
|
||
* emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
|
||
(PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
|
||
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
|
||
* testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
|
||
* testsuite/ld-aarch64/bti-plt-1.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-1.s: New test.
|
||
* testsuite/ld-aarch64/bti-plt-2.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-3.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-4.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-5.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-6.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-7.d: New test.
|
||
* testsuite/ld-aarch64/bti-plt-so.s: New test.
|
||
* testsuite/ld-aarch64/bti-plt.ld: New test.
|
||
|
||
2019-03-13 Sudakshina Das <sudi.das@arm.com>
|
||
|
||
* NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
|
||
GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
|
||
* testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
|
||
* testsuite/ld-aarch64/property-bti-pac1.d: New test.
|
||
* testsuite/ld-aarch64/property-bti-pac1.s: New test.
|
||
* testsuite/ld-aarch64/property-bti-pac2.d: New test.
|
||
* testsuite/ld-aarch64/property-bti-pac2.s: New test.
|
||
* testsuite/ld-aarch64/property-bti-pac3.d: New test.
|
||
|
||
2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/24322
|
||
* testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
|
||
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
||
* testsuite/ld-i386/pr24322a.d: New file.
|
||
* testsuite/ld-i386/pr24322b.d: Likewise.
|
||
* testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
|
||
* testsuite/ld-x86-64/pr24322a.d: Likewise.
|
||
* testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
|
||
* testsuite/ld-x86-64/pr24322b.d: Likewise.
|
||
* testsuite/ld-x86-64/pr24322a.s: Likewise.
|
||
* testsuite/ld-x86-64/pr24322b.s: Likewise.
|
||
* testsuite/ld-x86-64/pr24322c.s: Likewise.
|
||
|
||
2019-03-06 Nick Bowler <nbowler@draconx.ca>
|
||
|
||
PR 24289
|
||
* ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
|
||
attributes during the first phase.
|
||
|
||
2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
|
||
|
||
This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
|
||
2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
|
||
|
||
PR 20113
|
||
* emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
|
||
* emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
|
||
* testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
|
||
* testsuite/ld-s390/tlsbin.dd: Likewise.
|
||
* testsuite/ld-s390/tlsbin.rd: Likewise.
|
||
* testsuite/ld-s390/tlsbin.sd: Likewise.
|
||
* testsuite/ld-s390/tlsbin_64.dd: Likewise.
|
||
* testsuite/ld-s390/tlsbin_64.rd: Likewise.
|
||
* testsuite/ld-s390/tlsbin_64.sd: Likewise.
|
||
* testsuite/ld-s390/tlspic.dd: Likewise.
|
||
* testsuite/ld-s390/tlspic.rd: Likewise.
|
||
* testsuite/ld-s390/tlspic.sd: Likewise.
|
||
* testsuite/ld-s390/tlspic_64.dd: Likewise.
|
||
* testsuite/ld-s390/tlspic_64.rd: Likewise.
|
||
* testsuite/ld-s390/tlspic_64.sd: Likewise.
|
||
* testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
|
||
|
||
2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/24276
|
||
* testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
|
||
* testsuite/ld-x86-64/x86-64.exp: Likewise.
|
||
* testsuite/ld-i386/pr24276.dso: New file.
|
||
* testsuite/ld-i386/pr24276.warn: Likewise.
|
||
* testsuite/ld-x86-64/pr24276.dso: Likewise.
|
||
* testsuite/ld-x86-64/pr24276.warn: Likewise.
|
||
|
||
2019-02-20 Eric Tsai <erictsai@cadence.com>
|
||
|
||
* testsuite/ld-xtensa/call_overflow.d: New test definition.
|
||
* testsuite/ld-xtensa/call_overflow1.s: New test source.
|
||
* testsuite/ld-xtensa/call_overflow2.s: New test source.
|
||
* testsuite/ld-xtensa/call_overflow3.s: New test source.
|
||
* testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
|
||
|
||
2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
|
||
|
||
* testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
|
||
|
||
2019-02-12 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/fr.po: Updated French translation.
|
||
|
||
2019-02-09 Vineet Gupta <vgupta@synopsys.com>
|
||
|
||
* emultempl/arclinux.em: Delete special INIT/FINI handling.
|
||
|
||
2019-02-07 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR 24175
|
||
* ld.texi (Options): Add missing word to the description of the
|
||
--start-group option.
|
||
|
||
2019-02-06 Alan Modra <amodra@gmail.com>
|
||
|
||
PR ld/24008
|
||
* testsuite/ld-scripts/pr24008.d: Pass with extra target
|
||
defined symbols.
|
||
|
||
2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/24151
|
||
* testsuite/ld-x86-64/pr24151a-x32.d: New file.
|
||
* testsuite/ld-x86-64/pr24151a.d: Likewise.
|
||
* testsuite/ld-x86-64/pr24151a.s: Likewise.
|
||
* testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
|
||
|
||
2019-01-31 Alan Modra <amodra@gmail.com>
|
||
|
||
* NEWS: Mention -t change.
|
||
* ld.texi (--trace/-t): Expand documentation a little.
|
||
|
||
2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/24008
|
||
* testsuite/ld-scripts/defined.exp: Run pr24008.
|
||
* testsuite/ld-scripts/pr24008.d: New file.
|
||
* testsuite/ld-scripts/pr24008.map: Likewise.
|
||
* testsuite/ld-scripts/pr24008.s: Likewise.
|
||
* testsuite/ld-scripts/pr24008.t: Likewise.
|
||
|
||
2019-01-29 Eric Botcazou <ebotcazou@adacore.com>
|
||
|
||
* testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
|
||
|
||
2019-01-28 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 24008
|
||
* ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
|
||
* ldexp.c (fold_name): Move expld.assign_name check later to
|
||
avoid an extra lookup.
|
||
(exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
|
||
values, and don't clear expld.assign_name.
|
||
* ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
|
||
(print_assignment): Resolve entire assignment expression.
|
||
Don't access symbol u.def unless symbol is defined.
|
||
|
||
2019-01-25 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/bg.po: Updated Bulgarian translation.
|
||
|
||
2019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||
|
||
* ld.texi (--wrap): Add warning that LTO may make this feature
|
||
ineffective.
|
||
|
||
2019-01-21 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/uk.po: Updated Ukranian translation.
|
||
* po/pr_BR.po: Updated Brazilian Portuguese translation.
|
||
|
||
2019-01-21 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR 24108
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
|
||
expected error message.
|
||
|
||
2019-01-19 Nick Clifton <nickc@redhat.com>
|
||
|
||
* configure: Regenerate.
|
||
* po/ld.pot: Regenerate.
|
||
|
||
2018-06-24 Nick Clifton <nickc@redhat.com>
|
||
|
||
2.32 branch created.
|
||
|
||
2019-01-16 Kito Cheng <kito@andestech.com>
|
||
|
||
* testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
|
||
section.
|
||
* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
|
||
* testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
|
||
|
||
2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
|
||
|
||
PR 20113
|
||
* emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
|
||
* emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
|
||
* testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
|
||
* testsuite/ld-s390/tlsbin.dd: Likewise.
|
||
* testsuite/ld-s390/tlsbin.rd: Likewise.
|
||
* testsuite/ld-s390/tlsbin.sd: Likewise.
|
||
* testsuite/ld-s390/tlsbin_64.dd: Likewise.
|
||
* testsuite/ld-s390/tlsbin_64.rd: Likewise.
|
||
* testsuite/ld-s390/tlsbin_64.sd: Likewise.
|
||
* testsuite/ld-s390/tlspic.dd: Likewise.
|
||
* testsuite/ld-s390/tlspic.rd: Likewise.
|
||
* testsuite/ld-s390/tlspic.sd: Likewise.
|
||
* testsuite/ld-s390/tlspic_64.dd: Likewise.
|
||
* testsuite/ld-s390/tlspic_64.rd: Likewise.
|
||
* testsuite/ld-s390/tlspic_64.sd: Likewise.
|
||
* testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
|
||
|
||
2019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||
|
||
* ld.texi (--wrap): Add example to emphasise that only undefined
|
||
references are replaced by the linker.
|
||
|
||
2019-01-09 Nick Clifton <nickc@redhat.com>
|
||
|
||
* po/es.po: Updated Spanish translation.
|
||
|
||
2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
|
||
|
||
* configure: Regenerate.
|
||
|
||
2019-01-08 Alan Modra <amodra@gmail.com>
|
||
|
||
* testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
|
||
generated source file names.
|
||
* testsuite/ld-m68k/m68k-got.exp: Likewise.
|
||
|
||
2019-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2018
|
||
|
||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|