Skip to content

Commit

Permalink
Merge pull request #119 from infosiftr/bump
Browse files Browse the repository at this point in the history
Update to Bookworm + musl 1.2.5
  • Loading branch information
yosifkit authored Jan 21, 2025
2 parents 0b8aa18 + a71acd2 commit 2cd5514
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# explicitly use Debian for maximum cross-architecture compatibility
FROM debian:bullseye-slim
FROM debian:bookworm-slim

RUN set -eux; \
apt-get update; \
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN set -eux; \
rm -rf /var/lib/apt/lists/*

# https://musl.libc.org/releases.html
ENV MUSL_VERSION 1.2.4
ENV MUSL_VERSION 1.2.5
RUN set -eux; \
wget -O musl.tgz.asc "https://musl.libc.org/releases/musl-$MUSL_VERSION.tar.gz.asc"; \
wget -O musl.tgz "https://musl.libc.org/releases/musl-$MUSL_VERSION.tar.gz"; \
Expand Down Expand Up @@ -64,21 +64,21 @@ RUN set -ex; \
make clean all test \
TARGET_ARCH='arm32v5' \
CROSS_COMPILE='arm-linux-gnueabi-' \
# CFLAGS+='-march=armv5te' \
# EXTRA_CFLAGS='-march=armv5te' \
ARCH_TEST='armel'

RUN set -ex; \
make clean all test \
TARGET_ARCH='arm32v6' \
CROSS_COMPILE='arm-linux-gnueabi-' \
CFLAGS+='-march=armv6+fp' \
EXTRA_CFLAGS='-march=armv6+fp' \
ARCH_TEST='armhf'

RUN set -ex; \
make clean all test \
TARGET_ARCH='arm32v7' \
CROSS_COMPILE='arm-linux-gnueabihf-' \
# CFLAGS+='-march=armv7-a+fp' \
# EXTRA_CFLAGS='-march=armv7-a+fp' \
ARCH_TEST='armhf'

RUN set -ex; \
Expand All @@ -103,7 +103,7 @@ RUN set -ex; \
make clean all test \
TARGET_ARCH='ppc64le' \
CROSS_COMPILE='powerpc64le-linux-gnu-' \
CFLAGS+='-mlong-double-64' \
EXTRA_CFLAGS='-mlong-double-64' \
ARCH_TEST='ppc64el'

RUN set -ex; \
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ TARGET_ARCH := amd64
export ARCH_TEST :=
C_TARGETS := $(addsuffix hello, $(wildcard $(TARGET_ARCH)/*/))

export CFLAGS := -Os -fdata-sections -ffunction-sections -s
# norelro: https://stackoverflow.com/a/59084373/433558
export CFLAGS := -Os -fdata-sections -ffunction-sections -Wl,-z,norelro -s $(EXTRA_CFLAGS)
STRIP := $(CROSS_COMPILE)strip

.PHONY: all
Expand Down
Binary file modified amd64/hello-world/hello
Binary file not shown.
Binary file modified arm32v5/hello-world/hello
Binary file not shown.
Binary file modified arm32v6/hello-world/hello
Binary file not shown.
Binary file modified arm32v7/hello-world/hello
Binary file not shown.
Binary file modified arm64v8/hello-world/hello
Binary file not shown.
Binary file modified i386/hello-world/hello
Binary file not shown.
Binary file modified mips64le/hello-world/hello
Binary file not shown.
Binary file modified ppc64le/hello-world/hello
Binary file not shown.
Binary file modified riscv64/hello-world/hello
Binary file not shown.
Binary file modified s390x/hello-world/hello
Binary file not shown.

0 comments on commit 2cd5514

Please sign in to comment.