Mail Archives: djgpp/1999/04/16/17:44:30
> *(long *)section+r->r_vaddr += section;
> *(long *)section+r->r_vaddr -= (section - section_header.s_paddr);
more like *(long *)section+r->r_vaddr += symbol_addr - this_section->new_paddr;
With a DIR32 reloc, you don't do the subtraction part.
> One of the functions that gets output to .xptfunc references both
> _malloc and _memset, but they aren't statically linked into the
> object, so, what is it that I need to do to get _malloc and
> _memset's real addresses correctly patched into the file?
You need to find out their real addresses somehow, or defer those
relocations until you can know.
- Raw text -