aboutsummaryrefslogtreecommitdiff
path: root/binutils/nlmconv.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-04-22 22:13:23 +0000
committerIan Lance Taylor <ian@airs.com>1994-04-22 22:13:23 +0000
commitf645a4bf3855995ae0dbf847a64a258512847cf2 (patch)
tree5f19809c46092f4a60ce92f93ec5f4a47c3756a1 /binutils/nlmconv.c
parent92867d8efa6a85d7db47730bc15950c025b6a0eb (diff)
downloadgdb-f645a4bf3855995ae0dbf847a64a258512847cf2.zip
gdb-f645a4bf3855995ae0dbf847a64a258512847cf2.tar.gz
gdb-f645a4bf3855995ae0dbf847a64a258512847cf2.tar.bz2
* nlmconv.c (setup_sections): Remove special handling of .reginfo
section. (copy_sections): Likewise. (alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the special ECOFF .reginfo section.
Diffstat (limited to 'binutils/nlmconv.c')
-rw-r--r--binutils/nlmconv.c32
1 files changed, 3 insertions, 29 deletions
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index d421e39..db3a967 100644
--- a/binutils/nlmconv.c
+++ b/binutils/nlmconv.c
@@ -1169,13 +1169,6 @@ setup_sections (inbfd, insec, data_ptr)
bfd_size_type add;
bfd_size_type secsecsize;
- /* FIXME: We don't want to copy the .reginfo section of an ECOFF
- file. However, I don't have a good way to describe this section.
- We do want to copy the section when using objcopy. */
- if (bfd_get_flavour (inbfd) == bfd_target_ecoff_flavour
- && strcmp (bfd_section_name (inbfd, insec), ".reginfo") == 0)
- return;
-
f = bfd_get_section_flags (inbfd, insec);
if (f & SEC_CODE)
outname = NLM_CODE_NAME;
@@ -1248,13 +1241,6 @@ copy_sections (inbfd, insec, data_ptr)
inname = bfd_section_name (inbfd, insec);
- /* FIXME: We don't want to copy the .reginfo section of an ECOFF
- file. However, I don't have a good way to describe this section.
- We do want to copy the section when using objcopy. */
- if (bfd_get_flavour (inbfd) == bfd_target_ecoff_flavour
- && strcmp (inname, ".reginfo") == 0)
- return;
-
outsec = insec->output_section;
assert (outsec != NULL);
@@ -1633,22 +1619,10 @@ alpha_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
++(*reloc_count_ptr);
}
- /* Get the GP value from bfd. It is in the .reginfo section. */
+ /* Get the GP value from bfd. */
if (nlm_alpha_backend_data (outbfd)->gp == 0)
- {
- bfd *inbfd;
- asection *reginfo_sec;
- struct ecoff_reginfo sreginfo;
-
- inbfd = insec->owner;
- assert (bfd_get_flavour (inbfd) == bfd_target_ecoff_flavour);
- reginfo_sec = bfd_get_section_by_name (inbfd, REGINFO);
- if (reginfo_sec != (asection *) NULL
- && bfd_get_section_contents (inbfd, reginfo_sec,
- (PTR) &sreginfo, (file_ptr) 0,
- sizeof sreginfo) != false)
- nlm_alpha_backend_data (outbfd)->gp = sreginfo.gp_value;
- }
+ nlm_alpha_backend_data (outbfd)->gp =
+ bfd_ecoff_get_gp_value (insec->owner);
*relocs = (arelent *) xmalloc (sizeof (arelent));
(*relocs)->sym_ptr_ptr = bfd_abs_section.symbol_ptr_ptr;