public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: amodra@bigpond.net.au
Cc: hans-peter.nilsson@axis.com, binutils@sources.redhat.com
Subject: Re: [RFA:] elflink.c: Hide _GLOBAL_OFFSET_TABLE_
Date: Sat, 30 Oct 2004 16:17:00 -0000	[thread overview]
Message-ID: <200410301615.i9UGFYtY032521@ignucius.se.axis.com> (raw)
In-Reply-To: <20041029145051.GA22917@bubble.modra.org> (message from Alan Modra on Sat, 30 Oct 2004 00:20:51 +0930)

> Date: Sat, 30 Oct 2004 00:20:51 +0930
> From: Alan Modra <amodra@bigpond.net.au>

> It would be a good idea to compile glibc and run the glibc testsuite.
> Pick a target that uses _GLOBAL_OFFSET_TABLE_ in dl-machine.h.  If
> that goes without a hitch, then feel free to commit.

Lucky me, the x86 port has that, though most of the fun seems to
be spoiled; it's declaration is already hidden.  See elf_machine_dynamic:
  extern const Elf32_Addr _GLOBAL_OFFSET_TABLE_[] attribute_hidden;

Unfortunately, I can't get a baseline with unpatched results;
glibc testing fails with current (as of this writing) HEAD of
binutils and glibc.  Testing with installed binutils works.
Testing on i686-pc-linux-gnu FC2, with PATH-prefixed prefix (and
--enable-add-ons --without-cvs), where binutils and
/lib/libgcc_s.so.1, is installed, yields:

gcc -nostdlib -nostartfiles -o /home/hp/glibc/obj/rt/tst-timer4  -Wl,-dynamic-linker=/tmp/glibcprefix/lib/ld-linux.so.2   -Wl,-z,\
combreloc -Wl,-z,relro /home/hp/glibc/obj/csu/crt1.o /home/hp/glibc/obj/csu/crti.o `gcc --print-file-name=crtbegin.o` /home/hp/gl\
ibc/obj/rt/tst-timer4.o /home/hp/glibc/obj/rt/librt.so /home/hp/glibc/obj/nptl/libpthread_nonshared.a /home/hp/glibc/obj/nptl/lib\
pthread.so  -Wl,-rpath-link=/home/hp/glibc/obj:/home/hp/glibc/obj/math:/home/hp/glibc/obj/elf:/home/hp/glibc/obj/dlfcn:/home/hp/g\
libc/obj/nss:/home/hp/glibc/obj/nis:/home/hp/glibc/obj/rt:/home/hp/glibc/obj/resolv:/home/hp/glibc/obj/crypt:/home/hp/glibc/obj/n\
ptl /home/hp/glibc/obj/libc.so.6 /home/hp/glibc/obj/libc_nonshared.a -lgcc -Wl,--as-needed -lgcc_s -Wl,--no-as-needed `gcc --prin\
t-file-name=crtend.o` /home/hp/glibc/obj/csu/crtn.o
GCONV_PATH=/home/hp/glibc/obj/iconvdata LC_ALL=C   /home/hp/glibc/obj/elf/ld-linux.so.2 --library-path /home/hp/glibc/obj:/home/h\
p/glibc/obj/math:/home/hp/glibc/obj/elf:/home/hp/glibc/obj/dlfcn:/home/hp/glibc/obj/nss:/home/hp/glibc/obj/nis:/home/hp/glibc/obj\
/rt:/home/hp/glibc/obj/resolv:/home/hp/glibc/obj/crypt:/home/hp/glibc/obj/nptl /home/hp/glibc/obj/rt/tst-timer4  > /home/hp/glibc\
/obj/rt/tst-timer4.out
make[3]: *** [/home/hp/glibc/obj/rt/tst-timer4.out] Error 1

I guess I just have to wait until HEAD of binutils stabilizes wrt. glibc testing.
Or investigate and fix the bug myself.

This isn't the first glibc test, so I doubt it's just a goof in
my framework, though glibc could do with a howto-testing item in
the FAQ.  I also stumbled on --with-binutils which could be
helpful.

brgds, H-P

  reply	other threads:[~2004-10-30 16:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29  4:37 Hans-Peter Nilsson
2004-10-29  5:38 ` Alan Modra
2004-10-29 11:46   ` Hans-Peter Nilsson
2004-10-29 14:57     ` Alan Modra
2004-10-30 16:17       ` Hans-Peter Nilsson [this message]
2005-01-05 13:19   ` Eric Botcazou
2005-01-05 13:48     ` Hans-Peter Nilsson
2005-01-05 13:58       ` Jakub Jelinek
2005-01-05 14:32         ` Hans-Peter Nilsson
2005-01-06 21:59         ` Eric Botcazou
2005-01-07 13:12           ` Eric Botcazou
2005-01-09  7:21           ` Alan Modra
2005-01-09  9:56             ` Eric Botcazou
2005-01-09 10:03               ` Jakub Jelinek
2005-01-09 10:01             ` Jakub Jelinek
2004-11-02  5:46 ` Hans-Peter Nilsson

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=200410301615.i9UGFYtY032521@ignucius.se.axis.com \
    --to=hans-peter.nilsson@axis.com \
    --cc=amodra@bigpond.net.au \
    --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).