This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: arm literal pool
ranjith kumar wrote:
> 1) Given an ARM executable, how to know weather a given address
> contains an 'arm instruction' or 'literal pool' ??
You can't, as they're interspersed. The best you can hope to do is
track the control flow from the entry point.
> 2) What happens when we strip that binary? Can we still determine
> whether given address contains an 'arm instruction' or 'literal
> pool'?
>
> 3)Can libelf/libdwarf libraries determine whether given address
> contains an 'arm instruction' or 'literal pool' even after that
> library has been stripped? Where can I find sample programs which uses
> libelf/libdwarf libraries and will tell whether given address
> contains an 'arm instruction' or 'literal pool' ?
>
> 4) How debuggers build control flow graph from an executable, when
> 'literal pool' appears in between 'instructions'?
Start from the entry point, and find everything reachable.
Andrew.