ppc64 without dot syms and linux kernel interaction

Jakub Jelinek jakub@redhat.com
Wed Aug 18 10:11:00 GMT 2004


On Wed, Aug 18, 2004 at 07:31:49PM +0930, Alan Modra wrote:
> On Tue, Aug 17, 2004 at 10:04:39PM +0200, Jakub Jelinek wrote:
> > On Tue, Aug 17, 2004 at 09:50:14PM +0200, Arjan van de Ven wrote:
> > > it breaks the kernel too...
> [snip]
> >         .llong  .sys_foobar
> [snip]
> 
> 	* elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
> 	if we can look up their function descriptor in a regular file.

Thanks a lot.

BTW, unrelated to this,
what do you think should be done in the new ABI with garbage collection of
.opd entries (.opd entries for functions not exported from a binary
or shared library and whose address is never taken don't need to be persent)?
In the old ABI it would be enough just to kill the .opd entries,
but in the new ABI if the .opd entry is removed, suddenly debugger
(and objdump -d) will not know anything about the function.
Should such operation move the non-dot symbol to the actual function
body in that case (in addition to removing the unneeded .opd entry)?

	Jakub



More information about the Binutils mailing list