public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: binutils@sources.redhat.com
Subject: PATCH: gas/2598: Build kernel 2.6.16 modules with gcc 4.0.2 Warning: setting incorrect section attributes for .got
Date: Wed, 26 Apr 2006 03:45:00 -0000	[thread overview]
Message-ID: <20060425222618.GA32676@lucon.org> (raw)

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)

             reply	other threads:[~2006-04-25 22:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-26  3:45 H. J. Lu [this message]
2006-04-26  9:24 ` H. J. Lu
2006-05-05 18:39   ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060425222618.GA32676@lucon.org \
    --to=hjl@lucon.org \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).