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]

PATCH: gas/2598: Build kernel 2.6.16 modules with gcc 4.0.2 Warning: setting incorrect section attributes for .got


Gcc may generate a section with SHF_ALPHA_GPREL. Assembler shouldn't
complain. This patch does it.


H.J.
----
2006-04-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR gas/2598
	* config/obj-elf.c (obj_elf_change_section): Allow user
	specified SHF_ALPHA_GPREL.

--- gas/config/obj-elf.c.alpha	2005-09-26 12:13:55.000000000 -0700
+++ gas/config/obj-elf.c	2006-04-25 15:21:15.000000000 -0700
@@ -632,6 +632,11 @@ obj_elf_change_section (const char *name
 	  else if (attr == SHF_EXECINSTR
 		   && strcmp (name, ".note.GNU-stack") == 0)
 	    override = TRUE;
+#ifdef TC_ALPHA
+	  /* A section on Alpha can have SHF_ALPHA_GPREL.  */
+	  else if ((attr & SHF_ALPHA_GPREL))
+	    override = TRUE;
+#endif
 	  else
 	    {
 	      if (group_name == NULL)


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