This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ppc pe brain damage


Noticed when answering a question for Nathan.  Totally broken.

	* config/tc-ppc.c (ppc_pe_section): Comment out code assigning
	coff section flag values to bfd section flag.

Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.123
diff -u -p -r1.123 tc-ppc.c
--- gas/config/tc-ppc.c	29 May 2007 01:57:08 -0000	1.123
+++ gas/config/tc-ppc.c	2 Jul 2007 02:07:22 -0000
@@ -4568,7 +4568,7 @@ ppc_pe_section (int ignore ATTRIBUTE_UNU
 		case 'R': /* Remove section at link time */
 		  flags |= SEC_NEVER_LOAD;
 		  break;
-
+#if IFLICT_BRAIN_DAMAGE
 		  /* Section Protection */
 		case 'r': /* section is readable */
 		  flags |= IMAGE_SCN_MEM_READ;
@@ -4612,7 +4612,7 @@ ppc_pe_section (int ignore ATTRIBUTE_UNU
 		  flags |= IMAGE_SCN_ALIGN_64BYTES;
 		  align = 6;
 		  break;
-
+#endif
 		default:
 		  as_bad (_("unknown section attribute '%c'"),
 			  *input_line_pointer);
@@ -4638,7 +4638,6 @@ ppc_pe_section (int ignore ATTRIBUTE_UNU
     }
 
   bfd_set_section_alignment (stdoutput, sec, align);
-
 }
 
 static void

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]