mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-18 01:27:05 +00:00
(ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
This commit is contained in:
parent
7356fed57f
commit
77623a344f
@ -2,6 +2,7 @@
|
||||
|
||||
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
|
||||
rather than 0.
|
||||
(ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
|
||||
|
||||
2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
|
@ -4688,9 +4688,8 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
|
||||
|
||||
sreloc = bfd_make_section (dynobj, name);
|
||||
flags = (SEC_HAS_CONTENTS | SEC_READONLY
|
||||
| SEC_IN_MEMORY | SEC_LINKER_CREATED);
|
||||
if ((sec->flags & SEC_ALLOC) != 0)
|
||||
flags |= SEC_ALLOC | SEC_LOAD;
|
||||
| SEC_IN_MEMORY | SEC_LINKER_CREATED
|
||||
| SEC_ALLOC | SEC_LOAD);
|
||||
if (sreloc == NULL
|
||||
|| ! bfd_set_section_flags (dynobj, sreloc, flags)
|
||||
|| ! bfd_set_section_alignment (dynobj, sreloc, 3))
|
||||
|
Loading…
Reference in New Issue
Block a user