X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=mark.c;h=70f90fde4ab4e3fd26fdb2134fd22e645bb191e5;hp=6c40c304292586e6b0c2f620aef5c071a9597f77;hb=9207a38ed4a09c60a1e9b9995a92bcd4580e3662;hpb=60f204cb9e3905100da0d89f14bb40db764acd9e diff --git a/mark.c b/mark.c index 6c40c30..70f90fd 100644 --- a/mark.c +++ b/mark.c @@ -368,7 +368,7 @@ printf("MarkBSDImage():\n"); continue; #ifdef DEBUG_IMAGE_MARKING -printf(" validsegment: raddr = $%08X\n", raddr); +printf(" validsegment: raddr = $%08X\n", loc); #endif uint32_t rflag = 0x00000040; // Absolute relocation @@ -527,10 +527,7 @@ uint32_t CreateELFRelocationRecord(uint8_t * buf, uint8_t * secBuf, uint16_t sec else r_type = 1; // R_68K_32 - if (symbol != NULL) - r_addend = symbol->svalue; // Mark offset into section - else - r_addend = GETBE32(secBuf + r_offset, 0); + r_addend = GETBE32(secBuf + r_offset, 0); // Deposit the relocation record D_long(r_offset);