|Info on PIC code email@example.com (Doug Wyatt) (1997-06-10)|
|Re: Info on PIC code firstname.lastname@example.org (Ian Lance Taylor) (1997-06-13)|
|From:||Doug Wyatt <email@example.com>|
|Date:||10 Jun 1997 23:54:26 -0400|
|Keywords:||code, question, comment|
Are there any good references on the specifics on PIC code
implementations? In particular, I'm interested in PIC from gcc in x86
machines. I need info such as persistency of the PIC register,
when/where PIC register values are calculated, offset formulas for
symbols at runtime, etc.
I am currently trying to build some shared libraries for an OS we are
developing and need to know what sort of register manipulations are
legal and where. I tried to munge through the source to gcc but that
was getting me nowhere.
Lab for Computer Science firstname.lastname@example.org
[A quick look at the code suggests that it uses a procedure lookup table
and global offset table like the ones that Sun's shared libraries do, and
that %bx is reserved to hold the address of the PLT. I also note that on
my BSD/OS 2.1 box, the assembler can't assemble the compiler's output when
you tell it to generate PIC. -John]
Return to the
Search the comp.compilers archives again.