This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: Problems with startup code symbols (Copious warnings)


Frederic RISS wrote:

>On Tue, 2006-06-20 at 19:34 -0400, Daniel Jacobowitz wrote:
>  
>
>>On Wed, Jun 21, 2006 at 07:13:21AM +1100, Steven Johnson wrote:
>>    
>>
>>>Is it possible to to tell what section the debug info is for?
>>>      
>>>
>>No, at this point, that's exactly the problem.  The necessary
>>information is gone.
>>
>>    
>>
Ok, from my poking around it seemed that what was still known however
was the file name the symbol comes from (correct?).  Again, it would
seem unlikely that code from a file starting at 0, would also contain
code trigerring link once behaviour.  So, what about (until a better fix
comes along) a settable variable that is the name of a file to ignore
the "discard symbols for link once sections" behaviour?

Something like:

set this-file-validly-starts-at-zero vectors.S

As we are talking about a single problematic address, a single option
should be all that's required, as 2 files can't both start at the same
address (assuming no one has overlays going on at address 0).

If this is acceptable, id like it if anyone can propose a more suitable
name for the option as I'm stumped for a decent one.

This is something I AM comfortable in adding to GDB, Docs, etc.  And
will happilly do it by this weekend, if its OK with everyone concerned.

>>Long term, the correct fix to this is not in GDB anyway.  Both linker
>>and compiler fixes have been pursued.  Someone just needs to push
>>through on it.
>>    
>>
>
>Just out of curiosity, do you have any pointers to these 'pursued
>fixes'? 
>  
>
I too would be interested in pointers to this.

Steven J



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