[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/10152] New: [2.20 regression] ld segfault linking the kernel
From: |
doko at debian dot org |
Subject: |
[Bug ld/10152] New: [2.20 regression] ld segfault linking the kernel |
Date: |
13 May 2009 15:57:27 -0000 |
http://sourceware.org/ml/binutils/2009-05/msg00220.html
Paul Brook schrieb:
> The patch below implements linker processing of ARM unwinding tables
> (SHT_ARM_EXIDX).
>
> 2009-05-05 Paul Brook <address@hidden>
>
> 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
--
Summary: [2.20 regression] ld segfault linking the kernel
Product: binutils
Version: 2.20 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: doko at debian dot org
CC: bug-binutils at gnu dot org
GCC target triplet: arm-linux-gnueabi
http://sourceware.org/bugzilla/show_bug.cgi?id=10152
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/10152] New: [2.20 regression] ld segfault linking the kernel,
doko at debian dot org <=