From: "H. J. Lu" <hjl@lucon.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] Re: Gate DSO not building properly?
Date: Wed, 22 Oct 2003 05:48:13 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106680172513890@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106679437709356@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 613 bytes --]
On Wed, Oct 22, 2003 at 01:45:47PM +1000, Ian Wienand wrote:
> On Tue, Oct 21, 2003 at 04:10:51PM +1000, Ian Wienand wrote:
> > arch/ia64/kernel/gate-data.S:1: Warning: setting incorrect section
> > attributes for .data.gate
>
> I figured out why (sorry if it's obvious); gas matches anything with
> prefix '.data.' as a data special section and flags it as 'SHF_ALLOC +
> SHF_WRITE' as per ELF [*]. Issuing
>
> .section .data.gate, "ax"
>
> thus conflicts as it's assumed to be an extension of a .data section.
>
Here is a patch for gas. Gas should set the right section attributes
no matter what.
H.J.
[-- Attachment #2: gas-attr-1.patch --]
[-- Type: text/plain, Size: 948 bytes --]
2003-10-21 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Use specified
section attributes.
--- gas/config/obj-elf.c.attr 2003-09-23 08:16:44.000000000 -0700
+++ gas/config/obj-elf.c 2003-10-21 22:31:51.000000000 -0700
@@ -615,6 +615,7 @@ obj_elf_change_section (name, type, attr
segT sec;
flagword flags;
const struct bfd_elf_special_section *ssect;
+ bfd_boolean override = FALSE;
#ifdef md_flush_pending_output
md_flush_pending_output ();
@@ -685,10 +686,13 @@ obj_elf_change_section (name, type, attr
&& (attr &~ ssect->attr &~ SHF_MERGE &~ SHF_STRINGS) == 0)
;
else
- as_warn (_("setting incorrect section attributes for %s"),
- name);
+ {
+ as_warn (_("setting incorrect section attributes for %s"),
+ name);
+ override = TRUE;
+ }
}
- if (old_sec == NULL)
+ if (!override && old_sec == NULL)
attr |= ssect->attr;
}
next prev parent reply other threads:[~2003-10-22 5:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-22 3:45 [PATCH] Re: Gate DSO not building properly? Ian Wienand
2003-10-22 5:48 ` H. J. Lu [this message]
2003-10-22 18:08 ` David Mosberger
2003-10-23 1:52 ` Ian Wienand
2003-10-23 4:56 ` David Mosberger
2003-10-24 10:07 ` Nick Clifton
2003-10-24 12:06 ` Matthew Wilcox
2003-10-24 12:21 ` Andreas Schwab
2003-10-24 15:15 ` H. J. Lu
2003-10-24 18:27 ` Matthew Wilcox
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=marc-linux-ia64-106680172513890@msgid-missing \
--to=hjl@lucon.org \
--cc=linux-ia64@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.