summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-04-10 09:04:40 +0000
committerEric Andersen <andersen@codepoet.org>2002-04-10 09:04:40 +0000
commit7c48638e14c01fb2bba51188c5b8de0844abfc8d (patch)
tree6fe4e80c6e754e126ab30c8c82d3a28bd2e6d231
parent9584adfb600d1735774c46c80356ae602e57a2e8 (diff)
Teach powerpc to whine loudly about using -fPIC when a R_PPC_REL24
is encountered... -Erik
-rw-r--r--ldso/ldso/powerpc/elfinterp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldso/ldso/powerpc/elfinterp.c b/ldso/ldso/powerpc/elfinterp.c
index 53655d507..430afc014 100644
--- a/ldso/ldso/powerpc/elfinterp.c
+++ b/ldso/ldso/powerpc/elfinterp.c
@@ -357,8 +357,8 @@ int _dl_parse_relocation_information(struct elf_resolve *tpnt,
switch (reloc_type) {
case R_PPC_NONE:
break;
-#if 0
case R_PPC_REL24:
+#if 0
{
int delta = symbol_addr - (unsigned long)reloc_addr;
if(delta<<6>>6 != delta){
@@ -369,6 +369,9 @@ int _dl_parse_relocation_information(struct elf_resolve *tpnt,
*reloc_addr |= delta&0x03fffffc;
}
break;
+#else
+ _dl_dprintf(2,"R_PPC_REL24: Compile shared libraries with -fPIC!\n");
+ _dl_exit(1);
#endif
case R_PPC_RELATIVE:
*reloc_addr = (unsigned long)tpnt->loadaddr + addend;