PATCH: Support DF_TEXTREL/DT_TEXTREL for SVR4 mips
Nick Clifton
nickc@cambridge.redhat.com
Sat Jun 16 01:57:00 GMT 2001
Hi H.J.
+ {
+ /* When creating a shared object, we must copy these
+ reloc types into the output file as R_MIPS_REL32
+ relocs. We make room for this reloc in the
+ .rel.dyn reloc section. */
+ mips_elf_allocate_dynamic_relocations (dynobj, 1);
+ if ((sec->flags & SEC_READONLY) != 0)
+ /* We tell the dynamic linker that there are
+ relocations against the text segment. */
+ info->flags |= DF_TEXTREL;
+ }
Is it safe to just check SEC_READONLY ? Shouldn't you also check for
SEC_CODE ?
Cheers
Nick
More information about the Binutils
mailing list