Skip to content
Commit 3a0ecccb authored by Florian Weimer's avatar Florian Weimer
Browse files

ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486]



Exporting functions and relying on symbol interposition from libc.so
makes the choice of implementation dependent on DT_NEEDED order, which
is not what some compiler drivers expect.

This commit replaces one magic mechanism (symbol interposition) with
another one (preprocessor-/compiler-based redirection).  This makes
the hand-over from the minimal malloc to the full malloc more
explicit.

Removing the ABI symbols is backwards-compatible because libc.so is
always in scope, and the dynamic loader will find the malloc-related
symbols there since commit f0b2132b
("ld.so: Support moving versioned symbols between sonames
[BZ #24741]").

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent 2efa52c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment