public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/20172] ld.so: add possibility to suppress LD_PRELOAD warnings
       [not found] <bug-20172-131@http.sourceware.org/bugzilla/>
@ 2021-06-24 10:45 ` Simon.Richter at hogyros dot de
  2021-06-25  7:44 ` fweimer at redhat dot com
  1 sibling, 0 replies; 2+ messages in thread
From: Simon.Richter at hogyros dot de @ 2021-06-24 10:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=20172

Simon Richter <Simon.Richter at hogyros dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Simon.Richter at hogyros dot de

--- Comment #1 from Simon Richter <Simon.Richter at hogyros dot de> ---
The most annoying instance of this warning is in mixed 32/64 bit environments.

In my use case, I have to preload a library into both 32 and 64 bit processes,
so I have two builds of the library and list both of them in ld.so.preload.
Every process startup now produces an error message, and suppressing these
would require me to list all libraries under "ignore errors from this".

Would it make sense to add a mechanism for conditional preloading, depending on
architecture, or a placeholder in the name that is replaced with the current
architecture so multiple libraries can be provided?

As for your patch, it adds a semantic change by making a break statement
conditional when it wasn't before. Is that a related problem?

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug dynamic-link/20172] ld.so: add possibility to suppress LD_PRELOAD warnings
       [not found] <bug-20172-131@http.sourceware.org/bugzilla/>
  2021-06-24 10:45 ` [Bug dynamic-link/20172] ld.so: add possibility to suppress LD_PRELOAD warnings Simon.Richter at hogyros dot de
@ 2021-06-25  7:44 ` fweimer at redhat dot com
  1 sibling, 0 replies; 2+ messages in thread
From: fweimer at redhat dot com @ 2021-06-25  7:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=20172

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Simon Richter from comment #1)
> The most annoying instance of this warning is in mixed 32/64 bit
> environments.
> 
> In my use case, I have to preload a library into both 32 and 64 bit
> processes, so I have two builds of the library and list both of them in
> ld.so.preload.

I think you already can use $LIB in the path to load the correct library based
on word size. See the ld.so(8) manual page:
https://www.man7.org/linux/man-pages/man8/ld.so.8.html

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-25  7:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20172-131@http.sourceware.org/bugzilla/>
2021-06-24 10:45 ` [Bug dynamic-link/20172] ld.so: add possibility to suppress LD_PRELOAD warnings Simon.Richter at hogyros dot de
2021-06-25  7:44 ` fweimer at redhat dot com

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).