[Bug gold/21503] Gold doesn't create linker stub symbols on ppc64

2017-05-23 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21503

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=590b87ffa386ea403e2cb61525c6aafef77097a2

commit 590b87ffa386ea403e2cb61525c6aafef77097a2
Author: Alan Modra 
Date:   Mon May 22 21:31:34 2017 +0930

PR21503, Gold doesn't create linker stub symbols on ppc64

PR 21503
* options.h: Add --emit-stub-syms option.
* powerpc.cc (object_id): New.
(Powerpc_relobj): Add uniq_ and accessor.  Sort variables for
better packing.
(Powerpc_dynobj): Sort variables for better packing.
(Target_powerpc::define_local): New function.
(Target_powerpc::group_sections): Pass stub table size to
Stub_table constructor.
(Target_powerpc::do_relax): Define stub and glink symbols.
(Stub_table): Add uniq_ variable, and id param to constructor.
(Stub_table::Plt_stub_ent): Add indx_ variable.
(Stub_table::Branch_stub_entries): Move typedef earlier.
(Stub_table::branch_stub_size): Replace "to" parameter with a
Branch_stub_entries iterator.
(Stub_table::add_long_branch_entry): Adjust to suit.
(Stub_table::add_plt_call_entry): Set indx_.
(Stub_table::define_stub_syms): New function.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/21503] Gold doesn't create linker stub symbols on ppc64

2017-05-23 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21503

Alan Modra  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Alan Modra  ---
Fixed

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/21251] Support $SYSROOT in ld -L and INPUT command

2017-05-23 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=21251

--- Comment #5 from Rainer Orth  ---
Hi Nick,

> Great - I have checked the patch in.

excellent, thanks.

>> Btw., do you have any idea how widespread the use of '=' for the sysroot
>> prefix is?
>
> Hmm, I was going to say not a lot, but then I remembered that GCC uses it:
>
>   https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html

Maybe I'm blind, but where did you see that?  I've also looked at GCC
mainline invoke.text and found nothing, neither with -L nor anywhere
sysroot is described.

I'd have been surprised to find pure linker option descriptions repeated
in the GCC manual, so I didn't even think to look.

> So maybe it is more widespread than we realise.

Which would be a pity ;-)

>> Besides, while were at --sysroot, did you have a chance to have a look
>> at PR ld/21250.
>
> I looked at it, shuddered, and looked away. :-}  I suspect that that PR
> will turn out to be a can of worms, so I was going to treat it as low 
> priority unless other people notice and complain too.

Understood.  It took me completely off guard since gcc's --sysroot
support works just the way I expected (no headers found outside of the
sysroot prefix), while gld may behave otherwise.  This is particularly
ugly if you're cross-linking for say a different OS version where the
native libraries do work, but may contain more (or less) functions than
desired for the target OS version.  In a real cross environment, where
host and target differ, you will get an error instead of links
succeeding silently when they shouldn't...

Rainer

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/21090] gcc compiled with --enable-default-pie show errors in binutils testsuite

2017-05-23 Thread oneup40.bugzilla at bulletmail dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21090

oneup40.bugzilla at bulletmail dot org changed:

   What|Removed |Added

  Attachment #10062|0   |1
is obsolete||

--- Comment #25 from oneup40.bugzilla at bulletmail dot org ---
Created attachment 10066
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10066&action=edit
further reduced testcase for gold incremental link internal error

$ make 1.o 2.o main.o
g++-c -o 1.o 1.cc
g++-c -o 2.o 2.cc
g++-c -o main.o main.cc
$ ./gold/ld-new -pie --incremental-full --incremental-patch=100 -z norelro
crtbeginS.o 1.o 2.o main.o -lc crtendS.o
$ ./gold/ld-new -pie --incremental-update -z norelro crtbeginS.o
--incremental-changed 1.o --incremental-unknown 2.o main.o -lc crtendS.o
./gold/ld-new: internal error in relocate, at ../../gold/x86_64.cc:4300

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils