diff options
author | Doug Kwan <dougkwan@google.com> | 2010-02-22 06:26:07 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2010-02-22 06:26:07 +0000 |
commit | 2a2b6d42b1a946cfaff8819925cdd15bee44d015 (patch) | |
tree | c434f4f73a93b26045882f05cb1b75f5e468f578 /gold/testsuite/thumb_branch_range.t | |
parent | 109af718c00cca36ea5c141464bfb51fbac068ce (diff) | |
download | fsf-binutils-gdb-2a2b6d42b1a946cfaff8819925cdd15bee44d015.zip fsf-binutils-gdb-2a2b6d42b1a946cfaff8819925cdd15bee44d015.tar.gz fsf-binutils-gdb-2a2b6d42b1a946cfaff8819925cdd15bee44d015.tar.bz2 |
2010-02-21 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_relocate_functions::arm_branch_common): Fix bug in
handling of the maximum backward branch offset.
(Arm_relocate_functions::thumb_branch_common): Ditto.
* testsuite/Makefile.am (check_SCRIPTS): Add arm_branch_in_range.sh.
(check_DATA): Add arm_bl_in_range.stdout, arm_bl_out_of_range.stdout
thumb_bl_in_range.stdout, thumb_bl_out_of_range.stdout,
thumb2_bl_in_range.stdout and thumb2_bl_out_of_range.stdout.
(arm_bl_in_range.stdout, arm_bl_in_range, arm_bl_in_range.o,
arm_bl_out_of_range.stdout, arm_bl_out_of_range,
arm_bl_out_of_range.o, thumb_bl_in_range.stdout, thumb_bl_in_range,
thumb_bl_in_range.o, thumb_bl_out_of_range.stdout,
thumb_bl_out_of_range thumb_bl_out_of_range.o,
thumb2_bl_in_range.stdout, thumb2_bl_in_range, thumb2_bl_in_range.o
thumb2_bl_out_of_range.stdout, thumb2_bl_out_of_range,
thumb2_bl_out_of_range.o): New rules.
(MOSTLYCLEANFILES): Add arm_bl_in_range, arm_bl_out_of_range,
thumb_bl_in_range, thumb_bl_out_of_range, thumb2_bl_in_range and
thumb2_bl_out_of_range
* testsuite/Makefile.in: Regenerate.
* testsuite/arm_bl_in_range.s: New file.
* testsuite/arm_bl_out_of_range.s: Ditto.
* testsuite/arm_branch_in_range.sh: Ditto.
* testsuite/arm_branch_range.t: Ditto.
* testsuite/thumb2_branch_range.t: Ditto.
* testsuite/thumb_bl_in_range.s: Ditto.
* testsuite/thumb_bl_out_of_range.s: Ditto.
* testsuite/thumb_branch_range.t: Ditto.
Diffstat (limited to 'gold/testsuite/thumb_branch_range.t')
-rw-r--r-- | gold/testsuite/thumb_branch_range.t | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gold/testsuite/thumb_branch_range.t b/gold/testsuite/thumb_branch_range.t new file mode 100644 index 0000000..fa858b5 --- /dev/null +++ b/gold/testsuite/thumb_branch_range.t @@ -0,0 +1,36 @@ +/* thumb_banch_range.t -- linker script to test ARM branch range. + + Copyright 2010 Free Software Foundation, Inc. + Written by Doug Kwan <dougkwan@google.com>. + + This file is part of gold. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + +SECTIONS +{ + . = 0x400000; + + .text.pre : { *(.text.pre) } + . = ALIGN(0x400000); + .text : { *(.text) } + . = ALIGN(0x400000); + .text.post : { *(.text.post) } + . += 0x1000; + .data : { *(.data) } + .bss : { *(.bss) } + .ARM.attributes : { *(.ARM.attributes) } +} |