From: Alan Modra <amodra@bigpond.net.au>
To: "H. J. Lu" <hjl@lucon.org>
Cc: binutils@sources.redhat.com
Subject: Re: ELF linker is broken
Date: Mon, 31 Jan 2005 23:16:00 -0000 [thread overview]
Message-ID: <20050131231617.GJ11595@bubble.modra.org> (raw)
In-Reply-To: <20050131212203.GA27701@lucon.org>
On Mon, Jan 31, 2005 at 01:22:03PM -0800, H. J. Lu wrote:
> I am enclosing a testcase here. I saw the same problem on ia32, ia64
> and x86_64:
Thanks. That makes it clear what is happening.
/* The special symbol _DYNAMIC is always set to the start of the
.dynamic section. This call occurs before we have processed the
symbols for any dynamic object, so we don't have to worry about
overriding a dynamic definition. We could set _DYNAMIC in a
linker script, but we only want to define it if we are, in fact,
creating a .dynamic section. We don't want to define it if there
is no .dynamic section, since on some ELF platforms the start up
code examines it to decide how to initialize the process. */
bh = NULL;
if (! (_bfd_generic_link_add_one_symbol
(info, abfd, "_DYNAMIC", BSF_GLOBAL, s, 0, NULL, FALSE,
get_elf_backend_data (abfd)->collect, &bh)))
return FALSE;
The comment 'before we have processed the symbols for any dynamic
object' is no longer true.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
next prev parent reply other threads:[~2005-01-31 23:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 19:22 IA64 " H. J. Lu
2005-01-31 0:02 ` Alan Modra
2005-01-31 7:13 ` Alan Modra
2005-01-31 8:29 ` Alan Modra
2005-01-31 18:38 ` H. J. Lu
2005-01-31 21:22 ` ELF " H. J. Lu
2005-01-31 22:02 ` PATCH: " H. J. Lu
2005-02-01 0:08 ` Alan Modra
2005-02-01 5:56 ` IA64 linker is totally broken (Re: PATCH: ELF linker is broken) H. J. Lu
2005-02-01 6:18 ` H. J. Lu
2005-02-01 7:16 ` Alan Modra
2005-02-01 22:46 ` H. J. Lu
2005-02-01 23:57 ` Alan Modra
2005-02-02 0:39 ` H. J. Lu
2005-02-02 1:12 ` Alan Modra
2005-02-02 1:37 ` Alan Modra
2005-02-02 2:23 ` H. J. Lu
2005-01-31 23:16 ` Alan Modra [this message]
2005-02-01 1:41 ` IA64 linker is broken Alan Modra
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=20050131231617.GJ11595@bubble.modra.org \
--to=amodra@bigpond.net.au \
--cc=binutils@sources.redhat.com \
--cc=hjl@lucon.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 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).