mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
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
This commit is contained in:
parent
4082ef8464
commit
fd6f9d1747
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user