/[gentoo-alt]/trunk/toolchain-prefix-wrapper/ld/ldwrapper.c
Gentoo

Log of /trunk/toolchain-prefix-wrapper/ld/ldwrapper.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)

Revision 1723 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 10 15:50:37 2013 UTC (20 months, 1 week ago) by grobian
File length: 30785 byte(s)
Diff to previous 1721
add_host_toolchain_libpath: usr/CHOST/lib/gcc no longer needs to exist (on Darwin)

Revision 1721 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 10 15:02:44 2013 UTC (20 months, 1 week ago) by grobian
File length: 30778 byte(s)
Diff to previous 1720
update copyright

Revision 1720 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 10 14:55:47 2013 UTC (20 months, 1 week ago) by grobian
File length: 30778 byte(s)
Diff to previous 1716
add_target_toolchain_runpath: usr/CHOST/lib/gcc no longer needs to exist (on Darwin)

Revision 1716 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 22 19:35:16 2012 UTC (2 years, 7 months ago) by grobian
File length: 30771 byte(s)
Diff to previous 1715
Update copyrights

Revision 1715 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 22 19:29:35 2012 UTC (2 years, 7 months ago) by grobian
File length: 30771 byte(s)
Diff to previous 1681
filterSysLibpath: do NOT remove any -L arguments

Since we do not recognise various multilib-dirs, the following simple
example causes breakage due to only the Prefix libdir being removed:

% gcc -o t -L$EPREFIX/usr/lib -L/usr/lib64 -lgdbm t.c

The executable t will be linked against /usr/lib64/libgdbm.so.X, while
$EPREFIX/usr/lib/libgdbm.so.Y (with Y > X) exists.  This is due to the
invocation to ld having the -L$EPREFIX/usr/lib moved to the end, while
the -L/usr/lib64 is retained in its original position.  Net effect,
/usr/lib64 is searched first, while the original gcc/collect2 invocation
was setup properly.

For this reason, don't try to be smart, by moving -L arguments around.
At all times, the input should be sane, the wrapper should only be
adding -L/-rpath arguments at the end for the configured Prefix system.



Revision 1681 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 14 14:32:24 2011 UTC (3 years, 8 months ago) by haubi
File length: 30918 byte(s)
Diff to previous 1679
update copyright

Revision 1679 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 14 13:03:13 2011 UTC (3 years, 8 months ago) by haubi
File length: 30918 byte(s)
Diff to previous 1678
For linkpath, add PREFIX/usr/lib:PREFIX/lib in that order,
but to runpath, add in reverse order.
This also is needed for AIX to allow (manual) workarounds, when updated
shared libraries have SONAME support while the old one does not, because
'libX.so' cannot be loaded any more when having SONAME support, as it
becomes either (a symlink to) an archive or a standalone import file.
This is related to http://bugs.gentoo.org/show_bug.cgi?id=213277


Revision 1678 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 13 12:35:06 2011 UTC (3 years, 8 months ago) by haubi
File length: 30557 byte(s)
Diff to previous 1677
Drop relative library path components before filtering against
system runpath, to avoid duplicate usr/lib via usr/lib/gcc/..
This allows workaround-libraries in usr/lib/host/gcc to be found
at runtime before the real ones in usr/lib, while finding the
real ones at linktime in usr/lib/gcc/.. first.
Such workarounds might be useful on AIX to enable SONAME
support for already installed libraries, fex libz.so might be
erroneously used at runtime, which breaks when supporting SONAME.


Revision 1677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 13 11:13:38 2011 UTC (3 years, 8 months ago) by haubi
File length: 28252 byte(s)
Diff to previous 1662
Add solaris plugin.
Add --with-native-ld, to choose native linker over
GNU linker when supported (currently Solaris only).


Revision 1662 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 23 10:14:39 2009 UTC (4 years, 9 months ago) by grobian
File length: 28190 byte(s)
Diff to previous 1646
Allow to switch dumping the eventual call args at runtime

Revision 1646 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 21 14:55:33 2009 UTC (5 years, 6 months ago) by grobian
File length: 28142 byte(s)
Diff to previous 1644
inline some small funcs

Revision 1644 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 21 14:28:47 2009 UTC (5 years, 6 months ago) by grobian
File length: 28002 byte(s)
Diff to previous 1638
squash compiler warnings (unused variables, unused computed values)

Revision 1638 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 19 19:01:19 2009 UTC (5 years, 6 months ago) by grobian
File length: 28155 byte(s)
Diff to previous 1632
update copyrights

Revision 1632 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 23 19:18:04 2008 UTC (6 years, 3 months ago) by grobian
File length: 28155 byte(s)
Diff to previous 1627
nuke multilib mess, we're no longer using it on Linux

Revision 1627 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 21 18:37:05 2008 UTC (6 years, 5 months ago) by haubi
File length: 28319 byte(s)
Diff to previous 1625
another attempt to get libpath,runpath for cross-triplet,cross-prefix,use-root right

Revision 1625 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 21 09:39:21 2008 UTC (6 years, 5 months ago) by haubi
File length: 26345 byte(s)
Diff to previous 1614
provide root (without trailing slash), eprefix and triplet for both host and target in LdPluginIn data

Revision 1614 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 14 09:44:33 2008 UTC (6 years, 5 months ago) by haubi
File length: 25747 byte(s)
Diff to previous 1613
reworked adding of host system's libdirs to avoid duplicates

Revision 1613 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 14 07:59:29 2008 UTC (6 years, 5 months ago) by haubi
File length: 25970 byte(s)
Diff to previous 1610
renamed 'binutils-libdir' to 'toolchain-libdir' in debug output

Revision 1610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 8 13:32:04 2008 UTC (6 years, 5 months ago) by haubi
File length: 25968 byte(s)
Diff to previous 1608
Bumped to 0.3 branch.
Dropped binutils-config.in, instead added ld/create-ldwrapper.in,
to be called from within binutils-config like a plugin.
Dropped version number from usr/lib/misc/binutils-config install dir.
Do not search for gcc, use usr/<chost>[/<ctarget>]/lib/gcc as gcc-ldpath instead.


Revision 1608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 11:07:15 2008 UTC (6 years, 6 months ago) by haubi
File length: 31800 byte(s)
Diff to previous 1607
more intelligent check if to add build-eprefix' system-libdirs to host-eprefix' runpath.

Revision 1607 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 28 15:25:43 2008 UTC (6 years, 6 months ago) by haubi
File length: 31163 byte(s)
Diff to previous 1602
actually add_host_system_libdirs() when
building natively, and ROOT is empty, and this is cross-EPREFIX

Revision 1602 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 4 21:42:40 2008 UTC (6 years, 7 months ago) by haubi
File length: 30920 byte(s)
Diff to previous 1598
during binutils-config for native ld, ld-wrapper is configured using env-vars
to use the new binutils without etc/env.d/ configfile, because this is
invalid in case that version might have just been unmerged.


Revision 1598 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 3 19:56:56 2008 UTC (6 years, 7 months ago) by haubi
File length: 28642 byte(s)
Diff to previous 1597
various warning fixes

Revision 1597 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 2 14:53:26 2008 UTC (6 years, 7 months ago) by haubi
File length: 28637 byte(s)
Diff to previous 1596
more cross-/native-compilation, fixed plugins

Revision 1596 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 31 11:04:08 2008 UTC (6 years, 7 months ago) by haubi
File length: 27023 byte(s)
Diff to previous 1591
added cross-compilation support.


Revision 1591 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Nov 2 10:58:02 2007 UTC (6 years, 10 months ago) by haubi
File length: 13432 byte(s)
initial import of toolchain-prefix-wrapper


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sticky Revision:

  ViewVC Help
Powered by ViewVC 1.1.20