> I'm sorry to bother you, but how should the Linux loader handle, in
practice, the relocations of type R_LM32_16_GOT?

I'm not sure that the loader needs to do anything for R_LM32_16_GOT relocs.
These relocs are just offsets into the .got section. The gp register points
at the .got. 

What it needs to do is change the pointers in the .got section. The .got is
effectively a table of pointers. The got section is I believe part of the
ELF specification, and is common to many other linux ports, so you may find
more information if you look at the MIPS or Blackfin ports.

> how was the linker tested

These relocations where tested by the company that did the uClinux port. If
you look at that port, I would expect that it shows what you need to do with
the various relocations.

>  I'm afraid you overestimate our understanding of FDPIC...

As you mine ;)

Cheers,
Jon



_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkym...@freenode
Webchat: www.milkymist.org/irc.html
Wiki: www.milkymist.org/wiki

Reply via email to