diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2021-05-10 14:00:00 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-05-10 14:00:00 +0100 |
commit | 5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f (patch) | |
tree | 615c47ed75ce7f0fc1057af369573119703388ab /bfd | |
parent | 261980de18b895d270dc7876d22b706db696e669 (diff) | |
download | gdb-5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f.zip gdb-5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f.tar.gz gdb-5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f.tar.bz2 |
Enable linker garbage collection for the PRU target.
bfd * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
ld * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
* testsuite/ld-elf/group8b.d: Ditto.
* testsuite/ld-elf/group9a.d: Ditto.
* testsuite/ld-elf/group9b.d: Ditto.
* testsuite/ld-elf/pr12851.d: Ditto.
* testsuite/ld-elf/pr22677.d: Ditto.
* testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
pru from list.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf32-pru.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 376e8fd..39395fa 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu> + + * elf32-pru.c (elf_backend_can_gc_sections): Define as 1. + 2021-05-08 Mike Frysinger <vapier@gentoo.org> * doc/Makefile.am (html-local, bfd/index.html): New targets. diff --git a/bfd/elf32-pru.c b/bfd/elf32-pru.c index e3001d5..b936844 100644 --- a/bfd/elf32-pru.c +++ b/bfd/elf32-pru.c @@ -1601,6 +1601,7 @@ pru_elf32_link_hash_table_create (bfd *abfd) #define elf_backend_relocate_section pru_elf32_relocate_section #define bfd_elf32_bfd_relax_section pru_elf32_relax_section +#define elf_backend_can_gc_sections 1 #define TARGET_LITTLE_SYM pru_elf32_vec #define TARGET_LITTLE_NAME "elf32-pru" |