diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-08-23 14:43:56 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-08-23 14:43:56 +0000 |
commit | 20acfda2ef2e5a7e5d168ae4749170d64552e9f0 (patch) | |
tree | 506f4b3644d313925a62082633943ced8d91016f /ld | |
parent | 3e23777d0bcffa43d4c25a7a5ee0e9b0f7c3a49d (diff) | |
download | gdb-20acfda2ef2e5a7e5d168ae4749170d64552e9f0.zip gdb-20acfda2ef2e5a7e5d168ae4749170d64552e9f0.tar.gz gdb-20acfda2ef2e5a7e5d168ae4749170d64552e9f0.tar.bz2 |
2006-08-23 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3103
* ld-elf/overlay.d: New file.
* ld-elf/overlay.s: Likewise.
* ld-elf/overlay.t: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/overlay.d | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/overlay.s | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/overlay.t | 10 |
4 files changed, 35 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index eca6c30..cc2819a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2006-08-23 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/3103 + * ld-elf/overlay.d: New file. + * ld-elf/overlay.s: Likewise. + * ld-elf/overlay.t: Likewise. + 2006-08-18 Paul Brook <paul@codesourcery.com> * ld-arm/arm-elf.exp (armelftests): Add armthumb-lib.so. Add diff --git a/ld/testsuite/ld-elf/overlay.d b/ld/testsuite/ld-elf/overlay.d new file mode 100644 index 0000000..b491ca4 --- /dev/null +++ b/ld/testsuite/ld-elf/overlay.d @@ -0,0 +1,12 @@ +# ld: -T overlay.t +#readelf: -s + +#... +[ ]+[0-9]+:[ ]+0*4000[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+ABS __load_start_text1 +#... +[ ]+[0-9]+:[ ]+0*4010[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+ABS __load_start_text2 +#... +[ ]+[0-9]+:[ ]+0*4030[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+ABS __load_stop_text2 +#... +[ ]+[0-9]+:[ ]+0*4010[ ]+0[ ]+NOTYPE[ ]+GLOBAL[ ]+DEFAULT[ ]+ABS __load_stop_text1 +#pass diff --git a/ld/testsuite/ld-elf/overlay.s b/ld/testsuite/ld-elf/overlay.s new file mode 100644 index 0000000..f153044 --- /dev/null +++ b/ld/testsuite/ld-elf/overlay.s @@ -0,0 +1,6 @@ + .section .text1,"ax",%progbits + .space 0x10 + .section .text2,"ax",%progbits + .space 0x20 + .text + .space 0x30 diff --git a/ld/testsuite/ld-elf/overlay.t b/ld/testsuite/ld-elf/overlay.t new file mode 100644 index 0000000..bdb33c8 --- /dev/null +++ b/ld/testsuite/ld-elf/overlay.t @@ -0,0 +1,10 @@ +SECTIONS +{ + .text : { *(.text) } + OVERLAY 0x1000 : AT (0x4000) + { + .text1 {*(.text1)} + .text2 {*(.text2)} + } + /DISCARD/ : { *(.*) } +} |