This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Revisit gdb/12528 for bare metal targets
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 1 Aug 2014 21:25:57 +0800
- Subject: Re: Revisit gdb/12528 for bare metal targets
- Authentication-results: sourceware.org; auth=none
- References: <53D8A264 dot 1050103 at codesourcery dot com>
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 (éå)