This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: alpha bits
- To: Benjamin Kosnik <bkoz at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: alpha bits
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 15 Nov 2000 11:10:23 -0800
- Cc: binutils at sourceware dot cygnus dot com
- References: <200011151815.eAFIFdO01203@fillmore.constant.com> <20001115110252.A30786@redhat.com>
> It's a linker bug -- there should be no (mapped) dynamic
> relocations against unmapped sections.
Fixed thus.
r~
* elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
section with the same ALLOC|LOAD flags as the source section.
Index: elf64-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-alpha.c,v
retrieving revision 1.14
diff -c -p -d -r1.14 elf64-alpha.c
*** elf64-alpha.c 2000/11/14 20:46:24 1.14
--- elf64-alpha.c 2000/11/15 19:08:41
*************** elf64_alpha_check_relocs (abfd, info, se
*** 2548,2554 ****
sreloc = bfd_make_section (dynobj, rel_sec_name);
if (sreloc == NULL
|| !bfd_set_section_flags (dynobj, sreloc,
! (SEC_ALLOC|SEC_LOAD
| SEC_HAS_CONTENTS
| SEC_IN_MEMORY
| SEC_LINKER_CREATED
--- 2548,2555 ----
sreloc = bfd_make_section (dynobj, rel_sec_name);
if (sreloc == NULL
|| !bfd_set_section_flags (dynobj, sreloc,
! ((sec->flags & (SEC_ALLOC
! | SEC_LOAD))
| SEC_HAS_CONTENTS
| SEC_IN_MEMORY
| SEC_LINKER_CREATED