diff options
author | Nick Clifton <nickc@redhat.com> | 2008-05-23 14:16:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-05-23 14:16:16 +0000 |
commit | 133d72e9955c347d1cbb0fae4424f0b34ef20b91 (patch) | |
tree | fd2c18e596145f7888e17924da5de5a61be12ee6 /ld/testsuite/ld-arm/farcall-section.s | |
parent | 95f283e8f644349569df75b089178014914d276c (diff) | |
download | gdb-133d72e9955c347d1cbb0fae4424f0b34ef20b91.zip gdb-133d72e9955c347d1cbb0fae4424f0b34ef20b91.tar.gz gdb-133d72e9955c347d1cbb0fae4424f0b34ef20b91.tar.bz2 |
Add more farcall tests
Diffstat (limited to 'ld/testsuite/ld-arm/farcall-section.s')
-rw-r--r-- | ld/testsuite/ld-arm/farcall-section.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/farcall-section.s b/ld/testsuite/ld-arm/farcall-section.s new file mode 100644 index 0000000..31c9038 --- /dev/null +++ b/ld/testsuite/ld-arm/farcall-section.s @@ -0,0 +1,20 @@ +@ Test to ensure that a ARM to ARM call exceeding 32Mb generates an error +@ if the destination is of type STT_SECTION (eg non-global symbol) + + .global _start + .syntax unified + +@ We will place the section .text at 0x1000. + + .text + +_start: + bl bar + +@ We will place the section .foo at 0x2001020. + + .section .foo, "xa" + +bar: + bx lr + |