Eliminate the RELOH2 relocation, as it never worked --- the address would be dtrg-experimental-powerpc
authorDavid Given <dg@cowlark.com>
Sat, 17 Sep 2016 10:43:15 +0000 (12:43 +0200)
committerDavid Given <dg@cowlark.com>
Sat, 17 Sep 2016 10:43:15 +0000 (12:43 +0200)
commit80cb6ba927591a2db6dbbe552100aad2d1b5278f
tree2280ed29a19b4e47247bbeeea8a1076b8a9ffbed
parent45a950571d539fc8819820882f17c9eb158fdad6
Eliminate the RELOH2 relocation, as it never worked --- the address would be
calculated incorrectly because of overflow errors.

Replace it with an extended RELOPPC relocation which understands addis/ori
pairs; add an la pseudoop to the assembler which generates these and the
appropriate relocation. Make good.

--HG--
branch : dtrg-experimental-powerpc-branch
15 files changed:
h/out.h
mach/powerpc/as/mach2.c
mach/powerpc/as/mach3.c
mach/powerpc/as/mach4.c
mach/powerpc/libem/aar4.s
mach/powerpc/libem/cfu8.s
mach/powerpc/libem/cif8.s
mach/powerpc/libem/cuf8.s
mach/powerpc/libem/powerpc.h
mach/powerpc/ncg/table
plat/linuxppc/libsys/_syscall.s
plat/linuxppc/libsys/trap.s
util/amisc/ashow.c
util/led/ack.out.5
util/led/relocate.c