This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM unwind table linker processing
- From: Matthias Klose <doko at ubuntu dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 13 May 2009 17:50:56 +0200
- Subject: Re: ARM unwind table linker processing
- References: <200905051516.55310.paul@codesourcery.com>
Paul Brook schrieb:
> The patch below implements linker processing of ARM unwinding tables
> (SHT_ARM_EXIDX).
>
> 2009-05-05 Paul Brook <paul@codesourcery.com>
>
> bfd/
> * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
> * bfd-in2.h: Regenerate.
> * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
> (_arm_elf_section_data): Add text and exidx fields.
> (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
> insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
> copy_exidx_entry): New functions.
> (elf32_arm_write_section): Fixup .ARM.exidx contents.
>
> ld/
> * emultempl/armelf.em (compare_output_sec_vma): New function.
> (gld${EMULATION_NAME}_finish): Add exidx munging code.
This breaks kernel builds on arm-linux-gnueabi. Checked by reverting this
change. command line used and object files at https://launchpad.net/bugs/375991
Matthias
Program received signal SIGSEGV, Segmentation fault.
bfd_set_section_size (abfd=0x0, ptr=0x7e5f8, val=8) at ../../bfd/section.c:1297
1297 if (abfd->output_has_begun)
(gdb) bt
#0 bfd_set_section_size (abfd=0x0, ptr=0x7e5f8, val=8) at ../../bfd/section.c:1297
#1 0x4005c60c in elf32_arm_fix_exidx_coverage (text_section_order=<value
optimized out>, num_text_sections=4,
info=<value optimized out>) at ../../bfd/elf32-arm.c:8425
#2 0x00026980 in gldarmelf_linux_eabi_finish () at earmelf_linux_eabi.c:420
#3 0x00021ea8 in ldemul_finish () at ../../ld/ldemul.c:90
#4 0x0001ac08 in lang_process () at ../../ld/ldlang.c:6282
#5 0x0001f154 in main (argc=10000, argv=0x12) at ../../ld/ldmain.c:479