[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/18160] New: Segmentation Fault in lang_gc_sections when linking
From: |
matthew.ickstadt at gmail dot com |
Subject: |
[Bug ld/18160] New: Segmentation Fault in lang_gc_sections when linking elf_x86_64 output |
Date: |
Wed, 25 Mar 2015 03:04:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18160
Bug ID: 18160
Summary: Segmentation Fault in lang_gc_sections when linking
elf_x86_64 output
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: matthew.ickstadt at gmail dot com
OS: Linux 3.16.0 x86_64 Ubuntu 14.10
Confirmed issue with HEAD (a25d8bf9c5b2c9d3671f4508c9132485c65c3773) and with
2.24.90
Linking together a few NASM-assembled objects and a rust-compiled lib with the
command:
ld-new --gc-sections -m elf_x86_64 -T link.ld -o bin/kernel.elf
arch/x86_64/asm/multiboot.o arch/x86_64/asm/idt.o arch/x86_64/asm/runtime.o
arch/x86_64/asm/gdt.o bin/libkernel.a
It links fine with -m elf_i386 and only crashes for elf_x86_64.
Here's a backtrace:
#0 0x0000000000482fb5 in elf_i386_gc_sweep_hook (abfd=0x1391750, info=0x7befc0
<link_info>,
sec=0x13b6a98, relocs=<optimized out>) at elf32-i386.c:1958
#1 0x0000000000472cae in elf_gc_sweep (info=0x7befc0 <link_info>,
abfd=0x136de20) at elflink.c:12210
#2 bfd_elf_gc_sections (abfd=0x136de20, info=0x7befc0 <link_info>) at
elflink.c:12472
#3 0x00000000004147df in lang_gc_sections () at ldlang.c:6408
#4 lang_process () at ldlang.c:6727
#5 0x00000000004039e7 in main (argc=13, argv=0x7fff8eebea98) at ./ldmain.c:418
It's interesting that it's still using elf_i386 functions for a 64-bit binary,
but that could be normal for all I know.
I can attach objects/source/core if needed.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/18160] New: Segmentation Fault in lang_gc_sections when linking elf_x86_64 output,
matthew.ickstadt at gmail dot com <=
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, matthew.ickstadt at gmail dot com, 2015/03/24
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, matthew.ickstadt at gmail dot com, 2015/03/24
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, hjl.tools at gmail dot com, 2015/03/25
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, matthew.ickstadt at gmail dot com, 2015/03/25
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, hjl.tools at gmail dot com, 2015/03/25
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, matthew.ickstadt at gmail dot com, 2015/03/25
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, hjl.tools at gmail dot com, 2015/03/25
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, hjl.tools at gmail dot com, 2015/03/25
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, hjl.tools at gmail dot com, 2015/03/25
- [Bug ld/18160] Segmentation Fault in lang_gc_sections when linking elf_x86_64 output, hjl.tools at gmail dot com, 2015/03/25