bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/22199] ld segfault with -static and -Map


From: hjl.tools at gmail dot com
Subject: [Bug binutils/22199] ld segfault with -static and -Map
Date: Mon, 25 Sep 2017 21:28:53 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22199

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Valère Monseur from comment #3)
> I've added an attachment with the input files for the linker.

This isn't sufficient. I need EVERY input file passed to linker, like below:

> /usr/bin/ld --build-id
> --hash-style=gnu -m elf_x86_64 -static -o hello
> /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/crt1.o
> /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/crti.o
> /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/crtbeginT.o
> -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0
> -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib -L/lib/../lib
> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../.. -v -Map
> hello.map hello.o --start-group -lgcc -lgcc_eh -lc --end-group
> /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/crtend.o
> /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/crtn.o

including libgcc.a, libgcc_eh.a and libc.a.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]