summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2014-04-16 15:19:20 +0000
committerCamm Maguire <camm@debian.org>2014-04-21 15:03:42 +0000
commitbbe490e7e3b49c56e201ac93d92b2530462a9ca6 (patch)
treedd609c38e8abc81e02e70faba0a038a08e68edeb
parentdc9a978d0707d73024ff241dbe14662737f0947d (diff)
downloadgcl-bbe490e7e3b49c56e201ac93d92b2530462a9ca6.tar.gz
Add dummy support for coff R_SECREL32 to load objects compiled with debugging
-rw-r--r--gcl/o/sfaslcoff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcl/o/sfaslcoff.c b/gcl/o/sfaslcoff.c
index 6eefa0ed..a383b8f9 100644
--- a/gcl/o/sfaslcoff.c
+++ b/gcl/o/sfaslcoff.c
@@ -59,7 +59,8 @@ struct reloc {
} __attribute__ ((packed));
#define R_ABS 0x0000 /* absolute, no relocation is necessary */
#define R_DIR32 0x0006 /* Direct 32-bit reference to the symbols virtual address */
-#define R_PCRLONG 0x0014 /* 32-bit reference pc relative to the symbols virtual address */
+#define R_SECREL32 0x000B /* Currently ignored, used only for debugging strings FIXME */
+#define R_PCRLONG 0x0014 /* 32-bit reference pc relative to the symbols virtual address */
struct syment {
union {
@@ -113,6 +114,7 @@ relocate(struct scnhdr *sec,struct reloc *rel,struct syment *sym) {
switch(rel->r_type) {
case R_ABS:
+ case R_SECREL32:
break;
case R_DIR32: