diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-11-10 20:49:49 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2014-11-10 20:51:16 +0000 |
commit | fd6f9d1747cd2ad2840ea099a1f3aaf1dd090d0e (patch) | |
tree | 50187d51e9bf7cd93e9a54150b0ef3019868c48b /bfd | |
parent | 4082ef846466438ea2cd5b3606f304f6fded152b (diff) | |
download | gdb-fd6f9d1747cd2ad2840ea099a1f3aaf1dd090d0e.zip gdb-fd6f9d1747cd2ad2840ea099a1f3aaf1dd090d0e.tar.gz gdb-fd6f9d1747cd2ad2840ea099a1f3aaf1dd090d0e.tar.bz2 |
bfd/
2014-11-10 James Cowgill <James.Cowgill@imgtec.com>
* elfxx-mips.c (_bfd_mips_elf_section_processing): don't force small
data sections to be PROGBITS
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 15 |
2 files changed, 8 insertions, 12 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ab34855..7f14166 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-11-10 James Cowgill <James.Cowgill@imgtec.com> + + * elfxx-mips.c (_bfd_mips_elf_section_processing): don't force small + data sections to be PROGBITS + 2014-11-10 Nick Clifton <nickc@redhat.com> PR binutils/17521 diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index a88d173..8664c18 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -6986,20 +6986,11 @@ _bfd_mips_elf_section_processing (bfd *abfd, Elf_Internal_Shdr *hdr) if (strcmp (name, ".sdata") == 0 || strcmp (name, ".lit8") == 0 || strcmp (name, ".lit4") == 0) - { - hdr->sh_flags |= SHF_ALLOC | SHF_WRITE | SHF_MIPS_GPREL; - hdr->sh_type = SHT_PROGBITS; - } + hdr->sh_flags |= SHF_ALLOC | SHF_WRITE | SHF_MIPS_GPREL; else if (strcmp (name, ".srdata") == 0) - { - hdr->sh_flags |= SHF_ALLOC | SHF_MIPS_GPREL; - hdr->sh_type = SHT_PROGBITS; - } + hdr->sh_flags |= SHF_ALLOC | SHF_MIPS_GPREL; else if (strcmp (name, ".compact_rel") == 0) - { - hdr->sh_flags = 0; - hdr->sh_type = SHT_PROGBITS; - } + hdr->sh_flags = 0; else if (strcmp (name, ".rtproc") == 0) { if (hdr->sh_addralign != 0 && hdr->sh_entsize == 0) |