Revisit gdb/12528 for bare metal targets

Yao Qi yao@codesourcery.com
Fri Aug 1 13:29:00 GMT 2014


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 (齐尧)



More information about the Gdb-patches mailing list