From cd000bffb245795be23f4a024481dc192d30cae7 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 31 Jul 2009 18:14:07 +0000 Subject: binutils/testsuite/ * binutils-all/arm/thumb2-cond.s: Use instructions instead of .short. gas/ * config/obj-elf.c (obj_elf_ident): Notify section change to the hook. * config/tc-arm.c (make_mapping_symbol): New function, from mapping_state. Save mapping symbols in the frag. (insert_data_mapping_symbol): New. (mapping_state): Use make_mapping_symbol, improve state transitions. (mapping_state_2): New. Provide dummy definition. (opcode_select): Do not call mapping_state. (s_bss): Call md_elf_section_change_hook instead of mapping_state. (output_inst): Update use of tc_frag_data. (new_automatic_it_block): Call mapping_state before emitting the IT instruction. (md_assemble): Move mapping_state to just before outputting the new instruction. (arm_handle_align): Update use of tc_frag_data. Call insert_data_mapping_symbol. (arm_init_frag): Update use of tc_frag_data. Call mapping_state_2. (arm_elf_change_section): Always update the mapping symbol FSM state. (check_mapping_symbols): New function. (arm_adjust_symtab): Use check_mapping_symbols. * config/tc-arm.h (struct arm_frag_type): New. (TC_FRAG_TYPE): Change to struct arm_frag_type. (TC_FRAG_INIT): Pass max_chars. (arm_init_frag): Update prototype. gas/testsuite/ * gas/arm/mapdir.d, gas/arm/mapdir.s: New files. * gas/arm/mapping.d: Adapted to new symbols generation. * gas/arm/mapping2.d: New test case. * gas/arm/mapping2.s: New file. * gas/arm/mapping3.d: New test case. * gas/arm/mapping3.s: New file. * gas/arm/mapping4.d: New test case. * gas/arm/mapping4.s: New file. * gas/arm/mapshort-eabi.d: Adapted to new symbols generation. * gas/elf/section2.e-armeabi: Adapted to new symbols generation. --- binutils/testsuite/ChangeLog | 6 ++++++ binutils/testsuite/binutils-all/arm/thumb2-cond.s | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'binutils') diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index bf6030d..cd91f52 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-07-31 Daniel Gutson + Daniel Jacobowitz + + * binutils-all/arm/thumb2-cond.s: Use instructions instead of + .short. + 2009-07-29 Alan Modra * binutils-all/testranges.s: Replace .value with .short. diff --git a/binutils/testsuite/binutils-all/arm/thumb2-cond.s b/binutils/testsuite/binutils-all/arm/thumb2-cond.s index 95761e1..b9de442 100644 --- a/binutils/testsuite/binutils-all/arm/thumb2-cond.s +++ b/binutils/testsuite/binutils-all/arm/thumb2-cond.s @@ -1,6 +1,8 @@ -.thumb + .arch armv7 + .syntax unified + .thumb foo: -.short 0xf000, 0xf800 -.short 0xbf38 -.short 0xf000, 0xbf04 -bx lr + bl 1f +1: it cc + bcc.w .+0xe0c + bx lr -- cgit v1.1