This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: a problem with ld options
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: chenyu <yu_chen at ict dot ac dot cn>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 22 Oct 2004 09:39:58 +0930
- Subject: Re: a problem with ld options
- References: <417758C8.2040703@ict.ac.cn>
On Thu, Oct 21, 2004 at 02:35:52PM +0800, chenyu wrote:
> First, I compile and link my program as follows:
> gcc -Wl,-r -Wl,-d -static try.c -o try.o
> ld -q try.o -o try.out
Tricky.
> readelf try.o -r
> readelf try.out -r
> The first readelf works well, but the second exits with segment fault.
Well, that's at least two bugs. readelf shouldn't segfault, and ld -q
ought to work. :-( Please open a bugzilla entry at
http://sources.redhat.com/bugzilla/enter_bug.cgi?product=binutils
and attach your try.o as a testcase.
--
Alan Modra
IBM OzLabs - Linux Technology Centre