On Thu Dec 21 12:37:55 2023 +0000, Fabian Maurer wrote:
Not sure if this is relevant, but I'm currently trying to build wine on Linux on M1 Macs (aarch64, 16k pages) and this fails with your branch:
gcc -o loader/wine-preloader loader/preloader.o loader/preloader_mac.o -nostartfiles -nodefaultlibs -static \ -Wl,-Ttext=0x7d7d00000000 loader/preloader.o: in function `init_r_debug': /home/fabian/Programming/Wine/wine64/../wine-git/loader/preloader.c:1411:(.text+0x2568): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against symbol `__executable_start' defined in .note.gnu.build-id section in loader/wine-preloader collect2: error: ld returned 1 exit status
I think this is a LLD specific failure, looks like the same happens on x86_64. Funnily LLD doesn't even generate a PT_DYNAMIC program header, and so doesn't have DT_DEBUG entry where to put _r_debug anyway.