diff options
author | Nick Clifton <nickc@redhat.com> | 2017-08-03 11:59:32 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-08-03 11:59:32 +0100 |
commit | fd9770d81fba7ad860e8bcfbc13c77f21041f1f3 (patch) | |
tree | 9986b3b1e364d8f2e12a363206afe13298768c10 /ld/testsuite/ld-unique/pr21529.d | |
parent | 2e9246e077cdbbff0a56a810c5750cc895382ba3 (diff) | |
download | gdb-fd9770d81fba7ad860e8bcfbc13c77f21041f1f3.zip gdb-fd9770d81fba7ad860e8bcfbc13c77f21041f1f3.tar.gz gdb-fd9770d81fba7ad860e8bcfbc13c77f21041f1f3.tar.bz2 |
Add more targets to the list of architectures not supporting format changing during linking. Fix seg-faults triggered when this is attempted.
PR ld/21884
* testsuite/ld-elf/pr21884.d: Add AVR, HPPA, IA64, M68HC1x and
SCORE to list of targets not supporting file format changes during
linking.
* testsuite/ld-unique/pr21529.d: Likewise.
* emultempl/avrelf.em (_before_allocation): Skip for non-ELF
output formats.
(avr_elf_create_output_section_statements): Fail if the output
format is not ELF.
(avr_finish): Do not access the ELF header in non-ELF format
output bfds.
* emultempl/m68hc1xelf.em (_before_allocation): Skip for non-ELF
output formats.
(m68hc11elf_create_output_section_statements): Fail if the putput
format is not ELF.
(m68hc11elf_after_allocation): Skip for non-ELF output formats.
Diffstat (limited to 'ld/testsuite/ld-unique/pr21529.d')
-rw-r--r-- | ld/testsuite/ld-unique/pr21529.d | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/testsuite/ld-unique/pr21529.d b/ld/testsuite/ld-unique/pr21529.d index bc4763d..5d3436b 100644 --- a/ld/testsuite/ld-unique/pr21529.d +++ b/ld/testsuite/ld-unique/pr21529.d @@ -1,5 +1,6 @@ #ld: --oformat binary -T pr21529.ld -e main #objdump: -s -b binary -#xfail: aarch64*-*-* arm*-*-* hppa-*-* ia64-*-* nds32*-*-* score-*-* +#notarget: aarch64*-*-* arm*-*-* avr-*-* hppa-*-* ia64-*-* m68hc1*-*-* nds32*-*-* score-*-* +# Skip targets which can't change output format to binary. #pass |