diff options
author | Doug Kwan <dougkwan@google.com> | 2011-06-24 16:40:34 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2011-06-24 16:40:34 +0000 |
commit | a60af0db8811f4ea6f5ac98322121ac541eb12e7 (patch) | |
tree | 47ed8acf7c5845fc9fd87e96e84cc12f737ab57e /gold/testsuite | |
parent | e3a9940106f25fd4054b6cc580b474f5eef22778 (diff) | |
download | gdb-a60af0db8811f4ea6f5ac98322121ac541eb12e7.zip gdb-a60af0db8811f4ea6f5ac98322121ac541eb12e7.tar.gz gdb-a60af0db8811f4ea6f5ac98322121ac541eb12e7.tar.bz2 |
2011-06-24 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_output_section::append_text_sections_to_list): Do not
skip empty text sections.
* testsuite/arm_exidx_test.s: Test handling of an empty text section.
Diffstat (limited to 'gold/testsuite')
-rw-r--r-- | gold/testsuite/arm_exidx_test.s | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gold/testsuite/arm_exidx_test.s b/gold/testsuite/arm_exidx_test.s index e4f8c8b..14dcc94 100644 --- a/gold/testsuite/arm_exidx_test.s +++ b/gold/testsuite/arm_exidx_test.s @@ -1,12 +1,25 @@ .syntax unified .arch armv5te - .text + .section .text.answer,"ax",%progbits .align 2 .global answer .type answer, %function answer: .fnstart + .cantunwind mov r0, #42 bx lr .fnend .size answer, .-answer + +# Check that we can handle an empty .text section + .section .text.empty,"ax",%progbits + .align 2 + .global empty + .type empty, %function +empty: + .fnstart + .cantunwind + .fnend + .size empty, .-empty + |