From 59ca5a8db396e3e9c395793d49e1cab05d2d3261 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 14 Dec 2025 10:45:21 +0100 Subject: elf: use a hashmap for looking up symbols Gets rid of linear-time findsym(), though needs some extra indirection to emit sorted symbols. --- bootstrap.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bootstrap.sh') diff --git a/bootstrap.sh b/bootstrap.sh index e4acdc4..1665239 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,11 @@ #!/bin/env sh set -eo pipefail -cc=gcc +if [ -x $CC ]; then + cc=gcc +else + cc=$CC +fi cflags="-std=c11" src=$(grep -o '\([_A-Za-z0-9/]\)\+\.c' < Makefile) X() { -- cgit v1.2.3