This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Support DF_TEXTREL/DT_TEXTREL for SVR4 mips
- To: hjl at lucon dot org
- Subject: PATCH: Support DF_TEXTREL/DT_TEXTREL for SVR4 mips
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 16 Jun 2001 09:58:31 +0100
- Cc: binutils at sourceware dot cygnus dot com
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