mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-16 02:07:38 +08:00
* elf32-bfin.c (elf32_bfinfdpic_create_dynamic_sections): Always
create .rela.bss. (elf32_bfinfdpic_size_dynamic_sections): Set SEC_EXCLUDE flag for empty .rela.bss and .rel.plt sections.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2009-09-04 Jie Zhang <jie.zhang@analog.com>
|
||||||
|
|
||||||
|
* elf32-bfin.c (elf32_bfinfdpic_create_dynamic_sections): Always
|
||||||
|
create .rela.bss.
|
||||||
|
(elf32_bfinfdpic_size_dynamic_sections): Set SEC_EXCLUDE flag
|
||||||
|
for empty .rela.bss and .rel.plt sections.
|
||||||
|
|
||||||
2009-09-03 Adam Nemet <anemet@caviumnetworks.com>
|
2009-09-03 Adam Nemet <anemet@caviumnetworks.com>
|
||||||
|
|
||||||
* elfxx-mips.c (mips_elf_calculate_relocation): Don't relocate
|
* elfxx-mips.c (mips_elf_calculate_relocation): Don't relocate
|
||||||
|
@ -3559,8 +3559,7 @@ elf32_bfinfdpic_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
|
|||||||
if (! info->shared)
|
if (! info->shared)
|
||||||
{
|
{
|
||||||
s = bfd_make_section_with_flags (abfd,
|
s = bfd_make_section_with_flags (abfd,
|
||||||
(bed->default_use_rela_p
|
".rela.bss",
|
||||||
? ".rela.bss" : ".rel.bss"),
|
|
||||||
flags | SEC_READONLY);
|
flags | SEC_READONLY);
|
||||||
if (s == NULL
|
if (s == NULL
|
||||||
|| ! bfd_set_section_alignment (abfd, s, bed->s->log_file_align))
|
|| ! bfd_set_section_alignment (abfd, s, bed->s->log_file_align))
|
||||||
@ -4299,6 +4298,15 @@ elf32_bfinfdpic_size_dynamic_sections (bfd *output_bfd,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
s = bfd_get_section_by_name (dynobj, ".rela.bss");
|
||||||
|
if (s && s->size == 0)
|
||||||
|
s->flags |= SEC_EXCLUDE;
|
||||||
|
|
||||||
|
s = bfd_get_section_by_name (dynobj, ".rel.plt");
|
||||||
|
if (s && s->size == 0)
|
||||||
|
s->flags |= SEC_EXCLUDE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user