* elfxx-mips.c: Call it IRIX, not Irix in comments.

This commit is contained in:
Thiemo Seufer 2002-05-14 23:23:59 +00:00
parent 4db1a35d12
commit 8dc1a139e1
2 changed files with 17 additions and 13 deletions

View file

@ -1,3 +1,7 @@
2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* elfxx-mips.c: Call it IRIX, not Irix in comments.
2002-05-13 Jason Thorpe <thorpej@wasabisystems.com> 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
* config.bfd (shle-*-netbsdelf*): Add target which includes * config.bfd (shle-*-netbsdelf*): Add target which includes

View file

@ -135,7 +135,7 @@ struct mips_elf_link_hash_table
/* The size of the .compact_rel section (if SGI_COMPAT). */ /* The size of the .compact_rel section (if SGI_COMPAT). */
bfd_size_type compact_rel_size; bfd_size_type compact_rel_size;
/* This flag indicates that the value of DT_MIPS_RLD_MAP dynamic /* This flag indicates that the value of DT_MIPS_RLD_MAP dynamic
entry is set to the address of __rld_obj_head as in Irix 5. */ entry is set to the address of __rld_obj_head as in IRIX5. */
boolean use_rld_obj_head; boolean use_rld_obj_head;
/* This is the value of the __rld_map or __rld_obj_head symbol. */ /* This is the value of the __rld_map or __rld_obj_head symbol. */
bfd_vma rld_value; bfd_vma rld_value;
@ -154,7 +154,7 @@ struct extsym_info
boolean failed; boolean failed;
}; };
/* The names of the runtime procedure table symbols used on Irix 5. */ /* The names of the runtime procedure table symbols used on IRIX5. */
static const char * const mips_elf_dynsym_rtproc_names[] = static const char * const mips_elf_dynsym_rtproc_names[] =
{ {
@ -165,7 +165,7 @@ static const char * const mips_elf_dynsym_rtproc_names[] =
}; };
/* These structures are used to generate the .compact_rel section on /* These structures are used to generate the .compact_rel section on
Irix 5. */ IRIX5. */
typedef struct typedef struct
{ {
@ -2411,7 +2411,7 @@ mips_elf_calculate_relocation (abfd, input_bfd, input_section, info,
{ {
value = addend + gp - p + 4; value = addend + gp - p + 4;
/* The MIPS ABI requires checking the R_MIPS_LO16 relocation /* The MIPS ABI requires checking the R_MIPS_LO16 relocation
for overflow. But, on, say, Irix 5, relocations against for overflow. But, on, say, IRIX5, relocations against
_gp_disp are normally generated from the .cpload _gp_disp are normally generated from the .cpload
pseudo-op. It generates code that normally looks like pseudo-op. It generates code that normally looks like
this: this:
@ -3542,7 +3542,7 @@ _bfd_mips_elf_fake_sections (abfd, hdr, sec)
else if (strcmp (name, ".mdebug") == 0) else if (strcmp (name, ".mdebug") == 0)
{ {
hdr->sh_type = SHT_MIPS_DEBUG; hdr->sh_type = SHT_MIPS_DEBUG;
/* In a shared object on Irix 5.3, the .mdebug section has an /* In a shared object on IRIX 5.3, the .mdebug section has an
entsize of 0. FIXME: Does this matter? */ entsize of 0. FIXME: Does this matter? */
if (SGI_COMPAT (abfd) && (abfd->flags & DYNAMIC) != 0) if (SGI_COMPAT (abfd) && (abfd->flags & DYNAMIC) != 0)
hdr->sh_entsize = 0; hdr->sh_entsize = 0;
@ -3552,7 +3552,7 @@ _bfd_mips_elf_fake_sections (abfd, hdr, sec)
else if (strcmp (name, ".reginfo") == 0) else if (strcmp (name, ".reginfo") == 0)
{ {
hdr->sh_type = SHT_MIPS_REGINFO; hdr->sh_type = SHT_MIPS_REGINFO;
/* In a shared object on Irix 5.3, the .reginfo section has an /* In a shared object on IRIX 5.3, the .reginfo section has an
entsize of 0x18. FIXME: Does this matter? */ entsize of 0x18. FIXME: Does this matter? */
if (SGI_COMPAT (abfd)) if (SGI_COMPAT (abfd))
{ {
@ -3572,7 +3572,7 @@ _bfd_mips_elf_fake_sections (abfd, hdr, sec)
if (SGI_COMPAT (abfd)) if (SGI_COMPAT (abfd))
hdr->sh_entsize = 0; hdr->sh_entsize = 0;
#if 0 #if 0
/* This isn't how the Irix 6 linker behaves. */ /* This isn't how the IRIX6 linker behaves. */
hdr->sh_info = SIZEOF_MIPS_DYNSYM_SECNAMES; hdr->sh_info = SIZEOF_MIPS_DYNSYM_SECNAMES;
#endif #endif
} }
@ -3693,7 +3693,7 @@ _bfd_mips_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
&& (abfd->flags & DYNAMIC) != 0 && (abfd->flags & DYNAMIC) != 0
&& strcmp (*namep, "_rld_new_interface") == 0) && strcmp (*namep, "_rld_new_interface") == 0)
{ {
/* Skip Irix 5 rld entry name. */ /* Skip IRIX5 rld entry name. */
*namep = NULL; *namep = NULL;
return true; return true;
} }
@ -4790,7 +4790,7 @@ _bfd_mips_elf_size_dynamic_sections (output_bfd, info)
} }
else if (strcmp (name, MIPS_ELF_STUB_SECTION_NAME (output_bfd)) == 0) else if (strcmp (name, MIPS_ELF_STUB_SECTION_NAME (output_bfd)) == 0)
{ {
/* Irix rld assumes that the function stub isn't at the end /* IRIX rld assumes that the function stub isn't at the end
of .text section. So put a dummy. XXX */ of .text section. So put a dummy. XXX */
s->_raw_size += MIPS_FUNCTION_STUB_SIZE; s->_raw_size += MIPS_FUNCTION_STUB_SIZE;
} }
@ -5785,7 +5785,7 @@ _bfd_mips_elf_finish_dynamic_sections (output_bfd, info)
/* The first entry of the global offset table will be filled at /* The first entry of the global offset table will be filled at
runtime. The second entry will be used by some runtime loaders. runtime. The second entry will be used by some runtime loaders.
This isn't the case of Irix rld. */ This isn't the case of IRIX rld. */
if (sgot != NULL && sgot->_raw_size > 0) if (sgot != NULL && sgot->_raw_size > 0)
{ {
MIPS_ELF_PUT_WORD (output_bfd, (bfd_vma) 0, sgot->contents); MIPS_ELF_PUT_WORD (output_bfd, (bfd_vma) 0, sgot->contents);
@ -6030,7 +6030,7 @@ _bfd_mips_elf_final_write_processing (abfd, linker)
} }
} }
/* When creating an Irix 5 executable, we need REGINFO and RTPROC /* When creating an IRIX5 executable, we need REGINFO and RTPROC
segments. */ segments. */
int int
@ -6060,7 +6060,7 @@ _bfd_mips_elf_additional_program_headers (abfd)
return ret; return ret;
} }
/* Modify the segment map for an Irix 5 executable. */ /* Modify the segment map for an IRIX5 executable. */
boolean boolean
_bfd_mips_elf_modify_segment_map (abfd) _bfd_mips_elf_modify_segment_map (abfd)
@ -6183,7 +6183,7 @@ _bfd_mips_elf_modify_segment_map (abfd)
} }
} }
} }
/* On Irix 5, the PT_DYNAMIC segment includes the .dynamic, /* On IRIX5, the PT_DYNAMIC segment includes the .dynamic,
.dynstr, .dynsym, and .hash sections, and everything in .dynstr, .dynsym, and .hash sections, and everything in
between. */ between. */
for (pm = &elf_tdata (abfd)->segment_map; *pm != NULL; for (pm = &elf_tdata (abfd)->segment_map; *pm != NULL;