Enable linker garbage collection for the PRU target.
authorDimitar Dimitrov <dimitar@dinux.eu>
Mon, 10 May 2021 13:00:00 +0000 (14:00 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 10 May 2021 13:00:00 +0000 (14:00 +0100)
commit5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f
tree615c47ed75ce7f0fc1057af369573119703388ab
parent261980de18b895d270dc7876d22b706db696e669
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.
bfd/ChangeLog
bfd/elf32-pru.c
ld/ChangeLog
ld/testsuite/ld-elf/group8a.d
ld/testsuite/ld-elf/group8b.d
ld/testsuite/ld-elf/group9a.d
ld/testsuite/ld-elf/group9b.d
ld/testsuite/ld-elf/pr12851.d
ld/testsuite/ld-elf/pr22677.d
ld/testsuite/lib/ld-lib.exp