PATCH: Fix elf64-alpha

H . J . Lu hjl@lucon.org
Wed Jul 11 12:08:00 GMT 2001


I checked in this patch under the obvious fix rule.


H.J.
----
2001-07-11  H.J. Lu  <hjl@gnu.org>

	* elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
	ALLOC|LOAD flags as the source section for debugging sections
	when creating the reloc section.

Index: elf64-alpha.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/elf64-alpha.c,v
retrieving revision 1.28
diff -u -p -r1.28 elf64-alpha.c
--- elf64-alpha.c	2001/05/23 18:36:03	1.28
+++ elf64-alpha.c	2001/07/11 04:36:14
@@ -2589,8 +2589,13 @@ elf64_alpha_check_relocs (abfd, info, se
 		  sreloc = bfd_make_section (dynobj, rel_sec_name);
 		  if (sreloc == NULL
 		      || !bfd_set_section_flags (dynobj, sreloc,
-						 ((sec->flags & (SEC_ALLOC
-								 | SEC_LOAD))
+						 (((sec->flags
+						    & SEC_DEBUGGING)
+						   ? (sec->flags
+						      & (SEC_ALLOC
+							 | SEC_LOAD))
+						   : (SEC_ALLOC
+						      | SEC_LOAD))
 						  | SEC_HAS_CONTENTS
 						  | SEC_IN_MEMORY
 						  | SEC_LINKER_CREATED



More information about the Binutils mailing list