diff options
author | Nick Clifton <nickc@redhat.com> | 1999-05-10 08:36:58 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-05-10 08:36:58 +0000 |
commit | c1f6bc0323fdfa8cb6a885c01053eceb7fe46cd6 (patch) | |
tree | 0863c2558d8b513e147e4f8e7de27453a3ecf460 /bfd/elf.c | |
parent | 4dec4d4e7456f47c91d76b7cb5de24bda9fa420f (diff) | |
download | gdb-c1f6bc0323fdfa8cb6a885c01053eceb7fe46cd6.zip gdb-c1f6bc0323fdfa8cb6a885c01053eceb7fe46cd6.tar.gz gdb-c1f6bc0323fdfa8cb6a885c01053eceb7fe46cd6.tar.bz2 |
Check for period after .rel{a} when detecting reloc sections.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1490,13 +1490,13 @@ elf_fake_sections (abfd, asect, failedptrarg) this_hdr->sh_type = SHT_DYNAMIC; this_hdr->sh_entsize = bed->s->sizeof_dyn; } - else if (strncmp (asect->name, ".rela", 5) == 0 + else if (strncmp (asect->name, ".rela.", 6) == 0 && get_elf_backend_data (abfd)->use_rela_p) { this_hdr->sh_type = SHT_RELA; this_hdr->sh_entsize = bed->s->sizeof_rela; } - else if (strncmp (asect->name, ".rel", 4) == 0 + else if (strncmp (asect->name, ".rel.", 5) == 0 && ! get_elf_backend_data (abfd)->use_rela_p) { this_hdr->sh_type = SHT_REL; |