This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: a problem with ld options


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]