Relocation of non-word-aligned pointers

Dave Lord lord at se-sd.NCR.COM
Wed Apr 11 11:32:16 AEST 1990

I am working on a compiler which will ultimately run on V.4 but is now
running on Interactive V.3. It's not "C". One of the compiler
options is to produce data mapping compatable with a particular
propriatary system which I won't name, but it doesn't require
word alignment of pointers. According to my 386 manual, word
alignment is not required for the 386. (Don't tell me about 

Here's my problem:

When doing relocation 'ld' seems to want to do the relocation
on a word boundary in spite of the fact the relocation entry
in my 'coff' file doesn't point to a word-aligned data item.
Question: Is this a bug? Does it work this way on all Unix's?
What about V.4 with Elf, Dwarf, and all that other good stuff?

I'd appreciate any light anyone could shed on this issue.

Dave Lord	lord at	619 693-5588 

More information about the Comp.unix.i386 mailing list