aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-12-13 09:30:06 +1030
committerAlan Modra <amodra@gmail.com>2016-12-13 09:37:59 +1030
commit22b05d33b4c870d65972ff8aefdd297ddc66d139 (patch)
tree2d8a77b9ee451188f674ed380f0d228393233267 /ld/testsuite/ld-elf
parent6392030005291f7c783da2247b63ae31dc8352e0 (diff)
downloadgdb-22b05d33b4c870d65972ff8aefdd297ddc66d139.zip
gdb-22b05d33b4c870d65972ff8aefdd297ddc66d139.tar.gz
gdb-22b05d33b4c870d65972ff8aefdd297ddc66d139.tar.bz2
Don't add PHDR for objcopy/strip or ld script specifying PHDRS
HPPA64 needs to add a DT_PHDR header for shared libs. That's fine when linking but shouldn't happen for strip/objcopy. Also PHDR must come first so there's no need to look at all program headers. bfd/ * elf64-hppa.c (elf64_hppa_modify_segment_map): Don't add PHDR for objcopy/strip or when a ld script specifies PHDRS. ld/ * testsuite/ld-elf/nobits-1.d: Remove xfail for hppa64. * testsuite/ld-elf/note-1.d: Likewise. * testsuite/ld-elf/note-2.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/nobits-1.d2
-rw-r--r--ld/testsuite/ld-elf/note-1.d2
-rw-r--r--ld/testsuite/ld-elf/note-2.d2
3 files changed, 0 insertions, 6 deletions
diff --git a/ld/testsuite/ld-elf/nobits-1.d b/ld/testsuite/ld-elf/nobits-1.d
index 89f0e10..9b90b6f 100644
--- a/ld/testsuite/ld-elf/nobits-1.d
+++ b/ld/testsuite/ld-elf/nobits-1.d
@@ -1,7 +1,5 @@
#ld: -Tnobits-1.t
#readelf: -l --wide
-#xfail: hppa64-*-*
-# hppa64 adds PHDR
#...
Section to Segment mapping:
diff --git a/ld/testsuite/ld-elf/note-1.d b/ld/testsuite/ld-elf/note-1.d
index 345a2bb..a5fc40f 100644
--- a/ld/testsuite/ld-elf/note-1.d
+++ b/ld/testsuite/ld-elf/note-1.d
@@ -1,7 +1,5 @@
#ld: -Tnote-1.t
#readelf: -l --wide
-#xfail: hppa64-*-*
-# hppa64 adds PHDR
#...
Section to Segment mapping:
diff --git a/ld/testsuite/ld-elf/note-2.d b/ld/testsuite/ld-elf/note-2.d
index 289134e..aff3240 100644
--- a/ld/testsuite/ld-elf/note-2.d
+++ b/ld/testsuite/ld-elf/note-2.d
@@ -1,8 +1,6 @@
#ld: -Tnote-2.t
#objcopy_linked_file: -R .foo
#readelf: -l --wide
-#xfail: hppa64-*-*
-# hppa64 adds PHDR
#...
Program Headers: