diff options
author | Paul Brook <paul@codesourcery.com> | 2006-02-07 03:50:20 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-02-07 03:50:20 +0000 |
commit | 1d022697d9081c6c39c3aa950c245bff518ebce7 (patch) | |
tree | 3f6f421ee85f447b01c0cbd7db1c4c76412f3dac /ld/testsuite | |
parent | f31cddcbd4350c950bffee7d921942189f6087bb (diff) | |
download | gdb-1d022697d9081c6c39c3aa950c245bff518ebce7.zip gdb-1d022697d9081c6c39c3aa950c245bff518ebce7.tar.gz gdb-1d022697d9081c6c39c3aa950c245bff518ebce7.tar.bz2 |
2006-02-07 Paul Brook <paul@codesourcery.com>
ld/
* emultempl/armelf.em: Include elf/arm.h.
(arm_elf_finish): Set low address bit if enty point is a Thumb
function.
ld/testsuite/
* ld-arm/arm-elf.exp: Add thumb-entry test.
* ld-arm/thumb-entry.d: New test.
* ld-arm/thumb-entry.s: New test.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-arm/arm-elf.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-arm/thumb-entry.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-arm/thumb-entry.s | 8 |
4 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index f7e13cd..d1692ed 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-02-07 Paul Brook <paul@codesourcery.com> + + * ld-arm/arm-elf.exp: Add thumb-entry test. + * ld-arm/thumb-entry.d: New test. + * ld-arm/thumb-entry.s: New test. + 2006-02-04 Richard Sandiford <richard@codesourcery.com> * ld-mips-elf/tls-hidden2a.s, ld-mips-elf/tls-hidden2b.s, diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp index 384b289..76a743e 100644 --- a/ld/testsuite/ld-arm/arm-elf.exp +++ b/ld/testsuite/ld-arm/arm-elf.exp @@ -89,6 +89,9 @@ set armelftests { {"TLS dynamic application" "-T arm-dyn.ld tmpdir/tls-lib.so" "" {tls-app.s} {{objdump -fdw tls-app.d} {objdump -Rw tls-app.r}} "tls-app"} + {"Thumb entry point" "-T arm.ld" "" {thumb-entry.s} + {{readelf -h thumb-entry.d}} + "thumb-entry"} } run_ld_link_tests $armelftests diff --git a/ld/testsuite/ld-arm/thumb-entry.d b/ld/testsuite/ld-arm/thumb-entry.d new file mode 100644 index 0000000..602fd6c --- /dev/null +++ b/ld/testsuite/ld-arm/thumb-entry.d @@ -0,0 +1,3 @@ +#... + Entry point address: 0x8001 +#... diff --git a/ld/testsuite/ld-arm/thumb-entry.s b/ld/testsuite/ld-arm/thumb-entry.s new file mode 100644 index 0000000..5b3659d --- /dev/null +++ b/ld/testsuite/ld-arm/thumb-entry.s @@ -0,0 +1,8 @@ + .text + .arch armv4t + .thumb + .global _start + .thumb_func +_start: + bx lr + |