Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMbhsRSdCFqLCsejgk4zDEWH6Xm9ZDRhY=94hCKYSUz3Ry3EQw@mail.gmail.com>
Date: Tue, 7 Feb 2023 14:58:37 -0800
From: Colin Cross <ccross@...gle.com>
To: musl@...ts.openwall.com
Subject: Supporting multilib LD_LIBRARY_PATHs

I'm hitting an issue where some test infrastructure is setting
LD_LIBRARY_PATH to a list that contains both 32-bit and 64-bit
libraries because it is unsure whether the code under test is going to
execute 32-bit or 64-bit processes or both.  When using musl the
dynamic loader takes the first library with a matching name and then
fails to load it if it is for the wrong elf class.

The attached patch verifies the elf machine and class when searching
the path list, continuing the search if a valid elf header with an
incorrect machine or class is found.

View attachment "0001-Ignore-incorrect-elf-architecture-libraries.patch" of type "text/x-patch" (5112 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.