Skip to content

Commit

Permalink
liblol: add a dummy ld-linux-loongarch-lp64d.so.1
Browse files Browse the repository at this point in the history
to prevent new world ld.so from loading when an old world executable
loads a new world lib which then requiring the new world ld.so, since
all symbols has been provided by our ld.so.1 in liblol.

This fixes tencent meeting, which loads the new world libstdc++ in the
system, which requires the new world ld.so.
  • Loading branch information
shankerwangmiao committed Jan 18, 2024
1 parent 14c2359 commit 34eddd0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 12 additions & 1 deletion autobuild/build
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,21 @@ EOF
"$i"
done

abinfo "Generating a dummy ld-linux-loongarch-lp64d.so.1 ..."

gcc -shared \
-x c /dev/null \
-o ld-linux-loongarch-lp64d.so.1 \
-Wl,--version-script -Wl,ld.map \
-nostdlib

abinfo "Installing ..."

mkdir -pv "$PKGDIR$LOLPREFIX/lib/$OWTARGET/"
for i in "libc.so.6" "nptl/libpthread.so.0" "${libs[@]}"; do
for i in "libc.so.6" "nptl/libpthread.so.0" \
"ld-linux-loongarch-lp64d.so.1" \
"${libs[@]}"; \
do
install -Dvm644 "$i" \
-t "$PKGDIR$LOLPREFIX/support/lib/$OWTARGET/"
done
Expand Down
3 changes: 2 additions & 1 deletion spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTOGENERATED FILE from spec.main using genspec
VER=0.1.1
VER=0.1.2
REL=0~pre1
_mirror="http://pkg.loongnix.cn/loongnix"

### For pkgs from outside loongnix repo
Expand Down
3 changes: 2 additions & 1 deletion spec.main
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VER=0.1.1
VER=0.1.2
REL=0~pre1
_mirror="http://pkg.loongnix.cn/loongnix"

### For pkgs from outside loongnix repo
Expand Down

0 comments on commit 34eddd0

Please sign in to comment.