In PowerPC as, keep a list of hi16 and ha16 relocations.
authorGeorge Koehler <xkernigh@netscape.net>
Sat, 4 Feb 2017 16:22:44 +0000 (11:22 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Sat, 4 Feb 2017 16:22:44 +0000 (11:22 -0500)
commitd4b5f6a284e11be39238ea1aabcaa9558262a4bd
treea64c3e9ec9cc54e1f868fd29d865d8c7e792580f
parent99df8482c0397d21f0e921de8f24582a9932c7d7
In PowerPC as, keep a list of hi16 and ha16 relocations.

Use it to pair hi16 and ha16 relocations with lo16 relocations even if
there are other instructions between them.  For now, the linker still
requires the lo16 in the next instruction.

Code my own linked lists and a bitset because I don't have convenient
libraries for them.  My bitset is an array of 16-bit values, like the
bitsets in ncgg (util/ncgg/set.h), but I also use realloc() to grow
the bitset.
mach/powerpc/as/mach5.c