mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
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.
This commit is contained in:

committed by
Nick Clifton

parent
261980de18
commit
5b45e89f56
@ -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>
|
2021-05-08 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* doc/Makefile.am (html-local, bfd/index.html): New targets.
|
* doc/Makefile.am (html-local, bfd/index.html): New targets.
|
||||||
|
@ -1601,6 +1601,7 @@ pru_elf32_link_hash_table_create (bfd *abfd)
|
|||||||
|
|
||||||
#define elf_backend_relocate_section pru_elf32_relocate_section
|
#define elf_backend_relocate_section pru_elf32_relocate_section
|
||||||
#define bfd_elf32_bfd_relax_section pru_elf32_relax_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_SYM pru_elf32_vec
|
||||||
#define TARGET_LITTLE_NAME "elf32-pru"
|
#define TARGET_LITTLE_NAME "elf32-pru"
|
||||||
|
11
ld/ChangeLog
11
ld/ChangeLog
@ -1,3 +1,14 @@
|
|||||||
|
2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
|
2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
|
||||||
|
|
||||||
* scripttempl/pru.sc (.resource_table): Add ALIGN directive.
|
* scripttempl/pru.sc (.resource_table): Add ALIGN directive.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#ld: -r --gc-sections --entry foo
|
#ld: -r --gc-sections --entry foo
|
||||||
#readelf: -g --wide
|
#readelf: -g --wide
|
||||||
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
||||||
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
|
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
|
||||||
|
|
||||||
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
|
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
|
||||||
\[Index\] Name
|
\[Index\] Name
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#ld: -r --gc-sections --entry bar
|
#ld: -r --gc-sections --entry bar
|
||||||
#readelf: -g --wide
|
#readelf: -g --wide
|
||||||
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
||||||
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
|
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
|
||||||
|
|
||||||
COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains . sections:
|
COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains . sections:
|
||||||
\[Index\] Name
|
\[Index\] Name
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#ld: -r --gc-sections --entry foo
|
#ld: -r --gc-sections --entry foo
|
||||||
#readelf: -g --wide
|
#readelf: -g --wide
|
||||||
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
||||||
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
|
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
|
||||||
|
|
||||||
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
|
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
|
||||||
\[Index\] Name
|
\[Index\] Name
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#ld: -r --gc-sections --entry bar
|
#ld: -r --gc-sections --entry bar
|
||||||
#readelf: -g --wide
|
#readelf: -g --wide
|
||||||
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
||||||
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
|
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
|
||||||
|
|
||||||
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
|
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
|
||||||
\[Index\] Name
|
\[Index\] Name
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#source: start.s
|
#source: start.s
|
||||||
#ld: --gc-sections
|
#ld: --gc-sections
|
||||||
#readelf: -s --wide
|
#readelf: -s --wide
|
||||||
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
|
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
|
||||||
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
||||||
|
|
||||||
#...
|
#...
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#readelf: -S --wide
|
#readelf: -S --wide
|
||||||
# generic linker targets don't support --gc-sections, nor do a bunch of
|
# generic linker targets don't support --gc-sections, nor do a bunch of
|
||||||
# others.
|
# others.
|
||||||
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
|
#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
\[[ 0-9]+\] \.preinit_array\.01000[ \t]+PREINIT_ARRAY[ \t0-9a-f]+WA?.*
|
\[[ 0-9]+\] \.preinit_array\.01000[ \t]+PREINIT_ARRAY[ \t0-9a-f]+WA?.*
|
||||||
|
@ -1090,7 +1090,6 @@ proc check_gc_sections_available { } {
|
|||||||
|| [istarget mep-*-*]
|
|| [istarget mep-*-*]
|
||||||
|| [istarget mn10200-*-*]
|
|| [istarget mn10200-*-*]
|
||||||
|| [istarget pj*-*-*]
|
|| [istarget pj*-*-*]
|
||||||
|| [istarget pru*-*-*]
|
|
||||||
|| [istarget s12z-*-*]
|
|| [istarget s12z-*-*]
|
||||||
|| [istarget xgate-*-*]
|
|| [istarget xgate-*-*]
|
||||||
|| [istarget z80-*-*] } {
|
|| [istarget z80-*-*] } {
|
||||||
|
Reference in New Issue
Block a user