alpha bits
Richard Henderson
rth@redhat.com
Wed Nov 15 11:10:00 GMT 2000
> 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
More information about the Binutils
mailing list