Re: Revisit gdb/12528 for bare metal targets

Yao Qi
2014-08-01T13:29:33Z

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 (é½å°§)