[Bug ld/26178] New: Can ld add -rpath-relative

2020-06-26 Thread jolivier23 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26178

Bug ID: 26178
   Summary: Can ld add -rpath-relative
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: jolivier23 at gmail dot com
  Target Milestone: ---

I've found it's nearly impossible to set $ORIGIN in certain scenarios due to
the variable getting interpreted as either a Makefile variable or environment
variable to configure or many other build tools/scenarios.

Could an option be added to ld to set a relative path and let ld write the
$ORIGIN string?

e.g.

ld -rpath-rel='../lib'

would set rpath or runpath to $ORIGIN/../lib

This would make setting origin based rpaths much simpler from build scripts

In our own scripts, I've resorted to patchelf for post build settings to avoid
$ORIGIN purgatory

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

2020-06-26 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25975

--- Comment #13 from dilyan.palauzov at aegee dot org  ---
Is this now reproducible?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug libctf/25120] Portability issues in binutils 2.33 due to libctf

2020-06-26 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25120

--- Comment #20 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Alcock :

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

commit 866706584c6622bd7f9f595c307422771ce1d564
Author: Nick Alcock 
Date:   Fri Dec 13 14:54:09 2019 +

libctf: work with compilers not supporting GNU C attributes

The obvious fallback __attribute__ stanza was missing.

Thanks to Harald van Dijk.

PR 25120
libctf/
* ctf-impl.h (_libctf_printflike_): Add non-GNU-C fallback.
(_libctf_unlikely_): Likewise.
(_libctf_unused): Likewise.
(_libctf_malloc_): Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug libctf/25120] Portability issues in binutils 2.33 due to libctf

2020-06-26 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25120

--- Comment #21 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Alcock :

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

commit e755667f94f2579056fb5210eed525dafebb96f3
Author: Nick Alcock 
Date:   Fri Dec 13 15:19:17 2019 +

libctf, elfcpp, gold: do not assume that  contains bswap_*

At least one C library (uclibc-ng) defines some of these only when
the compiler is GCC.  We might as well test for all three cases and
handle any of them being missing.

Very similar code exists in libctf and split between elfcpp and gold:
fix both.

(Also sync up elfcpp with a change made to libctf swap.h a few months
ago: since there is no out-of-line definition of the bswap replacements,
they should be declared static inline, not just inline, to prevent the
linker generating out-of-line references to them.)

PR libctf/25120
libctf/
* configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls.
* swap.h (bswap_16): Do not assume that presence of 
means this is declared.
(bswap_32): Likewise.
(bswap_64): Likewise.
(bswap_identity_64): Remove, unused.
* configure: Regenerated.
* config.h.in: Likewise.
gold/
* configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls.
* configure: Regenerated.
* config.h.in: Likewise.
elfcpp/
* elfcpp_swap.h (bswap_16): Do not assume that presence of
 means this is declared.  Make static inline, matching
recent change to libctf, since there is no non-inline definition
of these functions.
(bswap_32): Likewise.
(bswap_64): Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.