This is the mail archive of the gdb-patches@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: Revisit gdb/12528 for bare metal targets


On 07/30/2014 03:44 PM, Yao Qi wrote:
> I am
> looking for something else to check, for example, if ADDRESS is zero
> and address zero isn't within any SEC_LOAD sections of CU
> ("break-on-linker-gcd-function.cc"), then the function should be GC'ed
> by the linker.

I find I can check 'psymtab->textlow > 0'.  If psymtab->textlow is
greater than zero, and the address is zero, then the corresponding
function is GC'ed.  I'll post a patch soon.

-- 
Yao (éå)


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