Use non-hacky hidden shim symbols
This commit is contained in:
parent
1571708edc
commit
a209c6b6c5
2 changed files with 3 additions and 4 deletions
|
@ -33,12 +33,11 @@ RUN \
|
|||
-delete && \
|
||||
mkdir /opt/ffbuild
|
||||
|
||||
RUN git clone --filter=blob:none --depth=1 https://github.com/yugr/Implib.so /opt/implib && \
|
||||
sed -i '/^.*\.globl.*/a \ \ .hidden $sym' /opt/implib/arch/*/trampoline.S.tpl
|
||||
|
||||
ADD toolchain.cmake /toolchain.cmake
|
||||
ADD cross.meson /cross.meson
|
||||
|
||||
ADD gen-implib.sh /usr/bin/gen-implib
|
||||
RUN git clone --filter=blob:none --depth=1 https://github.com/yugr/Implib.so /opt/implib
|
||||
|
||||
ENV PATH="/opt/ct-ng/bin:${PATH}" \
|
||||
FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux" \
|
||||
|
|
|
@ -13,5 +13,5 @@ cd "$TMPDIR"
|
|||
|
||||
set -x
|
||||
python3 /opt/implib/implib-gen.py --target x86_64-linux-gnu --dlopen --lazy-load --verbose "$IN"
|
||||
${FFBUILD_CROSS_PREFIX}gcc $CFLAGS $STAGE_CFLAGS -c *.tramp.S *.init.c
|
||||
${FFBUILD_CROSS_PREFIX}gcc $CFLAGS $STAGE_CFLAGS -DIMPLIB_HIDDEN_SHIMS -c *.tramp.S *.init.c
|
||||
${FFBUILD_CROSS_PREFIX}ar -rcs "$OUT" *.tramp.o *.init.o
|
||||
|
|
Loading…
Reference in a new issue