diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2009-10-07 07:25:36 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2009-10-07 07:25:36 +0000 |
commit | 5c1a3f0fa74b2b0cc679d03e4158b4f37ae973f1 (patch) | |
tree | 3c22356e4655f4502c04d3602f380617e17d5b10 /ld/testsuite/ld-scripts/phdrs3.t | |
parent | 700d40ca16eb3ba1ecc1e602cb3eec175bdf70f0 (diff) | |
download | gdb-5c1a3f0fa74b2b0cc679d03e4158b4f37ae973f1.zip gdb-5c1a3f0fa74b2b0cc679d03e4158b4f37ae973f1.tar.gz gdb-5c1a3f0fa74b2b0cc679d03e4158b4f37ae973f1.tar.bz2 |
ld/
* ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable
segments do not appear after a different loadable segment.
* ld.texinfo (PHDRS): Document order of processing segments.
Document where PHDRS and FILEHDR may appear.
ld/testsuite/
* ld-scripts/phdrs3.d: New.
* ld-scripts/phdrs3.t: New.
* ld-scripts/phdrs3.exp: New.
Diffstat (limited to 'ld/testsuite/ld-scripts/phdrs3.t')
-rw-r--r-- | ld/testsuite/ld-scripts/phdrs3.t | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/phdrs3.t b/ld/testsuite/ld-scripts/phdrs3.t new file mode 100644 index 0000000..4bd4e85 --- /dev/null +++ b/ld/testsuite/ld-scripts/phdrs3.t @@ -0,0 +1,16 @@ +PHDRS +{ + data PT_LOAD ; + header PT_PHDR PHDRS ; /* OK */ + text PT_LOAD FILEHDR PHDRS ; +} + +SECTIONS +{ + /* This test will fail on architectures where the startaddress below + is less than the constant MAXPAGESIZE. */ + . = 0x800000 + SIZEOF_HEADERS; + .text : { *(.text) } :text + .data : { *(.data) } :data + /DISCARD/ : { *(.*) } +} |