ack/util/amisc
George Koehler 1bf58cf51c Add RELOLIS for PowerPC lis with ha16 or hi16.
The new relocation type RELOLIS handles these instructions:

    lis RT, ha16[expr] == addis RT, r0, ha16[expr]
    lis RT, hi16[expr] == addis RT, r0, hi16[expr]

RELOLIS stores a 32-bit value in the program text.  In this value, the
high bit is a ha16 flag, the next 5 bits are the target register RT,
and the low bits are a signed 26-bit offset.  The linker replaces this
value with the lis instruction.

The old RELOPPC relocated a ha16/lo16 or hi16/lo16 pair.  The new
RELOLIS relocates only a ha16 or hi16, so it is no longer necessary to
have a matching lo16 in the next instruction.  The disadvantage is
that RELOLIS has only a signed 26-bit offset, not a 32-bit offset.

Switch the assembler to use RELOLIS for ha16 or hi16 and RELO2 for
lo16.  The li32 instruction still uses the old RELOPPC relocation.

This is not the same as my RELOPPC change from my recent mail to
tack-devel (https://sourceforge.net/p/tack/mailman/message/35651528/).
This commit is on a different branch.  Here I am throwing away my
RELOPPC change and instead trying RELOLIS.
2017-02-08 11:46:31 -05:00
..
abmodules.1 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
abmodules.c Added an abmodules tool which detects B modules and generates an initialiser 2017-01-03 18:54:13 +00:00
aelflod.1 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
aelflod.c Apply kernigh@'s fix to broken symbol tables in aelflod (via mailing list patch): 2017-01-18 00:06:14 +01:00
anm.1 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
anm.c Add enough return types to the K&R C that the ACK builds (on Linux) using clang 2016-11-10 22:04:18 +01:00
ashow.1 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
ashow.c Add RELOLIS for PowerPC lis with ha16 or hi16. 2017-02-08 11:46:31 -05:00
asize.1 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
asize.c Sanitised the use of #include files to more properly conform to the standards. 2006-10-16 23:20:11 +00:00
aslod.1 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
aslod.c In aslod, remove some unused m68k2 stuff. 2016-12-13 16:02:38 -05:00
astrip.1 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
astrip.c Removed some explicit (and wrong) redeclarations of system 2007-02-25 20:58:16 +00:00
build.lua Properly install man pages. 2017-01-07 22:38:30 +01:00