FreeCalypso > hg > freecalypso-reveng
diff ticoff/reloc.c @ 115:2f23301d2f86
tiobjd: literal reloc recognition restricted to RTYPE_LONG
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 03 Apr 2014 06:50:07 +0000 |
parents | d97fbe98600b |
children | d88f2f40e3ae |
line wrap: on
line diff
--- a/ticoff/reloc.c Thu Apr 03 06:42:39 2014 +0000 +++ b/ticoff/reloc.c Thu Apr 03 06:50:07 2014 +0000 @@ -141,3 +141,16 @@ } return(0); } + +struct internal_reloc * +find_word32_reloc(sec, loc) + struct internal_scnhdr *sec; + unsigned loc; +{ + struct internal_reloc *rel; + + rel = find_reloc(sec, loc); + if (rel && rel->type != RTYPE_LONG) + rel = 0; + return(rel); +}