mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
a504d23a83
bfd * bfd-in2.h: Regenerate. * bfd-in.h (bfd_arm_stm32l4xx_fix): New enum. Specify how STM32L4XX instruction scanning should be done. (bfd_elf32_arm_set_stm32l4xx_fix) (bfd_elf32_arm_stm32l4xx_erratum_scan) (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Add prototypes. (bfd_elf32_arm_set_target_relocs): Add stm32l4xx fix type argument to prototype. * elf32-arm.c (STM32L4XX_ERRATUM_VENEER_SECTION_NAME) (STM32L4XX_ERRATUM_VENEER_ENTRY_NAME): Define macros. (elf32_stm32l4xx_erratum_type): New enum. (elf32_stm32l4xx_erratum_list): New struct. List of veneers or jumps to veneers. (_arm_elf_section_data): Add stm32l4xx_erratumcount, stm32l4xx_erratumlist. (elf32_arm_link_hash_table): Add stm32l4xx_erratum_glue_size, stm32l4xx_fix and num_stm32l4xx_fixes fields. (ctz): New function. (popcount): New function. (elf32_arm_link_hash_table_create): Initialize stm32l4xx_fix. (put_thumb2_insn): New function. (STM32L4XX_ERRATUM_LDM_VENEER_SIZE): Define. Size of a veneer for LDM instructions. (STM32L4XX_ERRATUM_VLDM_VENEER_SIZE): Define. Size of a veneer for VLDM instructions. (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum glue section. (record_stm32l4xx_erratum_veneer) : New function. Create a single veneer, and its associated symbols. (bfd_elf32_arm_add_glue_sections_to_bfd): Add STM32L4XX erratum glue. (bfd_elf32_arm_set_stm32l4xx_fix): New function. Set the type of erratum workaround required. (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): New function. Find out where veneers and branches to veneers have been placed in virtual memory after layout. (is_thumb2_ldmia): New function. (is_thumb2_ldmdb): Likewise. (is_thumb2_vldm ): Likewise. (stm32l4xx_need_create_replacing_stub): New function. Decide if a veneer must be emitted. (bfd_elf32_arm_stm32l4xx_erratum_scan): Scan the sections of an input BFD for potential erratum-triggering insns. Record results. (bfd_elf32_arm_set_target_relocs): Set stm32l4xx_fix field in global hash table. (elf32_arm_size_dynamic_sections): Collect glue information. (create_instruction_branch_absolute): New function. (create_instruction_ldmia): Likewise. (create_instruction_ldmdb): Likewise. (create_instruction_mov): Likewise. (create_instruction_sub): Likewise. (create_instruction_vldmia): Likewise. (create_instruction_vldmdb): Likewise. (create_instruction_udf_w): Likewise. (create_instruction_udf): Likewise. (push_thumb2_insn32): Likewise. (push_thumb2_insn16): Likewise. (stm32l4xx_fill_stub_udf): Likewise. (stm32l4xx_create_replacing_stub_ldmia): New function. Expands the replacing stub for ldmia instructions. (stm32l4xx_create_replacing_stub_ldmdb): Likewise for ldmdb. (stm32l4xx_create_replacing_stub_vldm): Likewise for vldm. (stm32l4xx_create_replacing_stub): New function. Dispatches the stub emission to the appropriate functions. (elf32_arm_write_section): Output veneers, and branches to veneers. ld * ld.texinfo: Description of the STM32L4xx erratum workaround. * emultempl/armelf.em (stm32l4xx_fix): New. (arm_elf_before_allocation): Choose the type of fix, scan for erratum. (gld${EMULATION_NAME}_finish): Fix veneer locations. (arm_elf_create_output_section_statements): Propagate stm32l4xx_fix value. (PARSE_AND_LIST_PROLOGUE): Define OPTION_STM32L4XX_FIX. (PARSE_AND_LIST_LONGOPTS): Add entry for handling --fix-stm32l4xx-629360. (PARSE_AND_LIST_OPTION): Add entry for helping on --fix-stm32l4xx-629360. (PARSE_AND_LIST_ARGS_CASES): Treat OPTION_STM32L4XX_FIX. tests * ld-arm/arm-elf.exp (armelftests_common): Add STM32L4XX tests. * ld-arm/stm32l4xx-cannot-fix-far-ldm.d: New. * ld-arm/stm32l4xx-cannot-fix-far-ldm.s: Likewise. * ld-arm/stm32l4xx-cannot-fix-it-block.d: Likewise. * ld-arm/stm32l4xx-cannot-fix-it-block.s: Likewise. * ld-arm/stm32l4xx-fix-all.d: Likewise. * ld-arm/stm32l4xx-fix-all.s: Likewise. * ld-arm/stm32l4xx-fix-it-block.d: Likewise. * ld-arm/stm32l4xx-fix-it-block.s: Likewise. * ld-arm/stm32l4xx-fix-ldm.d: Likewise. * ld-arm/stm32l4xx-fix-ldm.s: Likewise. * ld-arm/stm32l4xx-fix-vldm.d: Likewise. * ld-arm/stm32l4xx-fix-vldm.s: Likewise.
190 lines
6.2 KiB
Makefile
190 lines
6.2 KiB
Makefile
|
|
.*: file format elf32-littlearm.*
|
|
|
|
|
|
Disassembly of section \.text:
|
|
|
|
00008000 <__stm32l4xx_veneer_0>:
|
|
8000: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8004: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8008: f000 b875 b\.w 80f6 <__stm32l4xx_veneer_0_r>
|
|
800c: f7f0 a000 udf\.w #0
|
|
|
|
00008010 <__stm32l4xx_veneer_1>:
|
|
8010: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8014: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8018: f000 b872 b\.w 8100 <__stm32l4xx_veneer_1_r>
|
|
801c: f7f0 a000 udf\.w #0
|
|
|
|
00008020 <__stm32l4xx_veneer_2>:
|
|
8020: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8024: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8028: f000 b86f b\.w 810a <__stm32l4xx_veneer_2_r>
|
|
802c: f7f0 a000 udf\.w #0
|
|
|
|
00008030 <__stm32l4xx_veneer_3>:
|
|
8030: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8034: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8038: f000 b86e b\.w 8118 <__stm32l4xx_veneer_3_r>
|
|
803c: f7f0 a000 udf\.w #0
|
|
|
|
00008040 <__stm32l4xx_veneer_4>:
|
|
8040: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8044: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8048: f000 b86d b\.w 8126 <__stm32l4xx_veneer_4_r>
|
|
804c: f7f0 a000 udf\.w #0
|
|
|
|
00008050 <__stm32l4xx_veneer_5>:
|
|
8050: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8054: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8058: f000 b86c b\.w 8134 <__stm32l4xx_veneer_5_r>
|
|
805c: f7f0 a000 udf\.w #0
|
|
|
|
00008060 <__stm32l4xx_veneer_6>:
|
|
8060: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8064: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8068: f000 b86b b\.w 8142 <__stm32l4xx_veneer_6_r>
|
|
806c: f7f0 a000 udf\.w #0
|
|
|
|
00008070 <__stm32l4xx_veneer_7>:
|
|
8070: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8074: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8078: f000 b86c b\.w 8154 <__stm32l4xx_veneer_7_r>
|
|
807c: f7f0 a000 udf\.w #0
|
|
|
|
00008080 <__stm32l4xx_veneer_8>:
|
|
8080: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8084: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8088: f000 b86d b\.w 8166 <__stm32l4xx_veneer_8_r>
|
|
808c: f7f0 a000 udf\.w #0
|
|
|
|
00008090 <__stm32l4xx_veneer_9>:
|
|
8090: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
8094: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
8098: f000 b86e b\.w 8178 <__stm32l4xx_veneer_9_r>
|
|
809c: f7f0 a000 udf\.w #0
|
|
|
|
000080a0 <__stm32l4xx_veneer_a>:
|
|
80a0: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
80a4: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
80a8: f000 b86f b\.w 818a <__stm32l4xx_veneer_a_r>
|
|
80ac: f7f0 a000 udf\.w #0
|
|
|
|
000080b0 <__stm32l4xx_veneer_b>:
|
|
80b0: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
80b4: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
80b8: f000 b870 b\.w 819c <__stm32l4xx_veneer_b_r>
|
|
80bc: f7f0 a000 udf\.w #0
|
|
|
|
000080c0 <__stm32l4xx_veneer_c>:
|
|
80c0: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
80c4: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
80c8: f000 b871 b\.w 81ae <__stm32l4xx_veneer_c_r>
|
|
80cc: f7f0 a000 udf\.w #0
|
|
|
|
000080d0 <__stm32l4xx_veneer_d>:
|
|
80d0: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
80d4: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
80d8: f000 b872 b\.w 81c0 <__stm32l4xx_veneer_d_r>
|
|
80dc: f7f0 a000 udf\.w #0
|
|
|
|
000080e0 <__stm32l4xx_veneer_e>:
|
|
80e0: e8b9 007e ldmia\.w r9!, {r1, r2, r3, r4, r5, r6}
|
|
80e4: e899 0380 ldmia\.w r9, {r7, r8, r9}
|
|
80e8: f000 b873 b\.w 81d2 <__stm32l4xx_veneer_e_r>
|
|
80ec: f7f0 a000 udf\.w #0
|
|
|
|
000080f0 <_start>:
|
|
80f0: bf08 it eq
|
|
80f2: f7ff bf85 beq\.w 8000 <__stm32l4xx_veneer_0>
|
|
|
|
000080f6 <__stm32l4xx_veneer_0_r>:
|
|
80f6: bf04 itt eq
|
|
80f8: f3af 8000 nopeq\.w
|
|
80fc: f7ff bf88 beq\.w 8010 <__stm32l4xx_veneer_1>
|
|
|
|
00008100 <__stm32l4xx_veneer_1_r>:
|
|
8100: bf0c ite eq
|
|
8102: f3af 8000 nopeq\.w
|
|
8106: f7ff bf8b bne\.w 8020 <__stm32l4xx_veneer_2>
|
|
|
|
0000810a <__stm32l4xx_veneer_2_r>:
|
|
810a: bf02 ittt eq
|
|
810c: f3af 8000 nopeq\.w
|
|
8110: f3af 8000 nopeq\.w
|
|
8114: f7ff bf8c beq\.w 8030 <__stm32l4xx_veneer_3>
|
|
|
|
00008118 <__stm32l4xx_veneer_3_r>:
|
|
8118: bf0a itet eq
|
|
811a: f3af 8000 nopeq\.w
|
|
811e: f3af 8000 nopne\.w
|
|
8122: f7ff bf8d beq\.w 8040 <__stm32l4xx_veneer_4>
|
|
|
|
00008126 <__stm32l4xx_veneer_4_r>:
|
|
8126: bf06 itte eq
|
|
8128: f3af 8000 nopeq\.w
|
|
812c: f3af 8000 nopeq\.w
|
|
8130: f7ff bf8e bne\.w 8050 <__stm32l4xx_veneer_5>
|
|
|
|
00008134 <__stm32l4xx_veneer_5_r>:
|
|
8134: bf0e itee eq
|
|
8136: f3af 8000 nopeq\.w
|
|
813a: f3af 8000 nopne\.w
|
|
813e: f7ff bf8f bne\.w 8060 <__stm32l4xx_veneer_6>
|
|
|
|
00008142 <__stm32l4xx_veneer_6_r>:
|
|
8142: bf01 itttt eq
|
|
8144: f3af 8000 nopeq\.w
|
|
8148: f3af 8000 nopeq\.w
|
|
814c: f3af 8000 nopeq\.w
|
|
8150: f7ff bf8e beq\.w 8070 <__stm32l4xx_veneer_7>
|
|
|
|
00008154 <__stm32l4xx_veneer_7_r>:
|
|
8154: bf03 ittte eq
|
|
8156: f3af 8000 nopeq\.w
|
|
815a: f3af 8000 nopeq\.w
|
|
815e: f3af 8000 nopeq\.w
|
|
8162: f7ff bf8d bne\.w 8080 <__stm32l4xx_veneer_8>
|
|
|
|
00008166 <__stm32l4xx_veneer_8_r>:
|
|
8166: bf05 ittet eq
|
|
8168: f3af 8000 nopeq\.w
|
|
816c: f3af 8000 nopeq\.w
|
|
8170: f3af 8000 nopne\.w
|
|
8174: f7ff bf8c beq\.w 8090 <__stm32l4xx_veneer_9>
|
|
|
|
00008178 <__stm32l4xx_veneer_9_r>:
|
|
8178: bf07 ittee eq
|
|
817a: f3af 8000 nopeq\.w
|
|
817e: f3af 8000 nopeq\.w
|
|
8182: f3af 8000 nopne\.w
|
|
8186: f7ff bf8b bne\.w 80a0 <__stm32l4xx_veneer_a>
|
|
|
|
0000818a <__stm32l4xx_veneer_a_r>:
|
|
818a: bf09 itett eq
|
|
818c: f3af 8000 nopeq\.w
|
|
8190: f3af 8000 nopne\.w
|
|
8194: f3af 8000 nopeq\.w
|
|
8198: f7ff bf8a beq\.w 80b0 <__stm32l4xx_veneer_b>
|
|
|
|
0000819c <__stm32l4xx_veneer_b_r>:
|
|
819c: bf0b itete eq
|
|
819e: f3af 8000 nopeq\.w
|
|
81a2: f3af 8000 nopne\.w
|
|
81a6: f3af 8000 nopeq\.w
|
|
81aa: f7ff bf89 bne\.w 80c0 <__stm32l4xx_veneer_c>
|
|
|
|
000081ae <__stm32l4xx_veneer_c_r>:
|
|
81ae: bf0d iteet eq
|
|
81b0: f3af 8000 nopeq\.w
|
|
81b4: f3af 8000 nopne\.w
|
|
81b8: f3af 8000 nopne\.w
|
|
81bc: f7ff bf88 beq\.w 80d0 <__stm32l4xx_veneer_d>
|
|
|
|
000081c0 <__stm32l4xx_veneer_d_r>:
|
|
81c0: bf0f iteee eq
|
|
81c2: f3af 8000 nopeq\.w
|
|
81c6: f3af 8000 nopne\.w
|
|
81ca: f3af 8000 nopne\.w
|
|
81ce: f7ff bf87 bne\.w 80e0 <__stm32l4xx_veneer_e>
|