diff options
author | Terry Guo <terry.guo@arm.com> | 2014-11-20 13:54:27 +0800 |
---|---|---|
committer | Terry Guo <terry.guo@arm.com> | 2014-11-20 13:54:27 +0800 |
commit | 9274e9de160a98d737bb2bd068c22d37ec66d98d (patch) | |
tree | 0282392448b637559a928cc7569755dd0d2f7964 /ld/testsuite/ld-arm/attr-merge-nosection-1a.s | |
parent | 430ce64f28318ef6f8e24b38af6c79741560b4f5 (diff) | |
download | gdb-9274e9de160a98d737bb2bd068c22d37ec66d98d.zip gdb-9274e9de160a98d737bb2bd068c22d37ec66d98d.tar.gz gdb-9274e9de160a98d737bb2bd068c22d37ec66d98d.tar.bz2 |
Enable to link ARM object file that hasn't attribute section.
bfd/ChangeLog
2014-11-20 Terry Guo <terry.guo@arm.com>
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Skip if input bfd
hasn't attribute section.
ld/testsuite/ChangeLog:
2014-11-20 Terry Guo <terry.guo@arm.com>
* ld-arm/attr-merge-nosection-1.d: New file.
* ld-arm/attr-merge-nosection-1a.s: Likewise.
* ld-arm/attr-merge-nosection-1b.s: Likewise.
* ld-arm/arm-elf.exp: Include the new test.
Diffstat (limited to 'ld/testsuite/ld-arm/attr-merge-nosection-1a.s')
-rw-r--r-- | ld/testsuite/ld-arm/attr-merge-nosection-1a.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/attr-merge-nosection-1a.s b/ld/testsuite/ld-arm/attr-merge-nosection-1a.s new file mode 100644 index 0000000..ab358e3 --- /dev/null +++ b/ld/testsuite/ld-arm/attr-merge-nosection-1a.s @@ -0,0 +1,10 @@ + .cpu cortex-m0 + .fpu softvfp + .syntax unified + .thumb + .text + .global foo + .thumb_func + .type foo, %function +foo: + bx lr |