From: Uros Bizjak <ubizjak@gmail.com>
To: Rainer Orth <ro@cebitec.uni-bielefeld.de>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [build] Fix Solaris 2/x86 GD/LD TLS code sequences with Sun ld
Date: Tue, 24 May 2011 17:40:00 -0000 [thread overview]
Message-ID: <BANLkTimCbqEEZoUqVuTDp7iWav0GGiat9Q@mail.gmail.com> (raw)
In-Reply-To: <yddpqn8ru1o.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
On Tue, May 24, 2011 at 5:34 PM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> Uros Bizjak <ubizjak@gmail.com> writes:
>
>>> I think I tried something along these lines, but failed with duplicate
>>> @plt@plt for PIC code.
>>
>> Hm, there is no %P1 present, so I don't think this should be an issue.
>
> Unfortunately, I do get assembler errors (Sun as at the moment) with
> your updated patch:
>
> libtool: compile: /var/gcc/gcc-4.7.0-20110523/10-gcc/./gcc/xgcc -shared-libgcc -B/var/gcc/gcc-4.7.0-20110523/10-gcc/./gcc -nostdinc++ -L/var/gcc/gcc-4.7.0-20110523/10-gcc/i386-pc-solaris2.10/amd64/libstdc++-v3/src -L/var/gcc/gcc-4.7.0-20110523/10-gcc/i386-pc-solaris2.10/amd64/libstdc++-v3/src/.libs -B/usr/local/i386-pc-solaris2.10/bin/ -B/usr/local/i386-pc-solaris2.10/lib/ -isystem /usr/local/i386-pc-solaris2.10/include -isystem /usr/local/i386-pc-solaris2.10/sys-include -m64 -I/vol/gcc/src/hg/trunk/solaris/libstdc++-v3/../gcc -I/var/gcc/gcc-4.7.0-20110523/10-gcc/i386-pc-solaris2.10/amd64/libstdc++-v3/include/i386-pc-solaris2.10 -I/var/gcc/gcc-4.7.0-20110523/10-gcc/i386-pc-solaris2.10/amd64/libstdc++-v3/include -I/vol/gcc/src/hg/trunk/solaris/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2 -m64 -c /vol/gcc/src/hg/trunk/solaris/libstdc++-v3/libsupc++/fundamental_type_info.cc -fPIC -DPIC -o funinfo.o
> damental_type_info.o
> Assembler: eh_globals.cc
> "/var/tmp//ccJ1MA8h.s", line 17 : Syntax error
> Near line: " call __tls_get_addr(%rip)@plt"
> "/var/tmp//ccJ1MA8h.s", line 38 : Syntax error
> Near line: " call __tls_get_addr(%rip)@plt"
> make[9]: *** [eh_globals.lo] Error 1
Bah. %P has a special handling that removes (%rip). Are you sure Sun
assembler requests @plt in PIC and non-PIC cases? Can we solve this
with TARGET_SUN_TLS somehow?
Thanks,
Uros.
next prev parent reply other threads:[~2011-05-24 16:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-23 20:04 Rainer Orth
2011-05-23 21:32 ` Uros Bizjak
2011-05-24 16:42 ` Rainer Orth
2011-05-24 16:43 ` Uros Bizjak
2011-05-24 17:19 ` Rainer Orth
2011-05-24 17:40 ` Uros Bizjak [this message]
2011-05-24 17:41 ` Rainer Orth
2011-05-24 18:07 ` Uros Bizjak
2011-05-26 11:12 ` Rainer Orth
2011-05-27 0:47 ` Uros Bizjak
2011-05-27 13:35 ` Rainer Orth
2011-05-27 14:00 ` Uros Bizjak
2011-05-27 16:57 ` Rainer Orth
2011-05-24 17:40 ` Joseph S. Myers
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=BANLkTimCbqEEZoUqVuTDp7iWav0GGiat9Q@mail.gmail.com \
--to=ubizjak@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=ro@cebitec.uni-bielefeld.de \
/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).