https://bugs.winehq.org/show_bug.cgi?id=55091
Bug ID: 55091 Summary: Wine fails compiling Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: build-env Assignee: wine-bugs@winehq.org Reporter: eric.pouech@gmail.com Distribution: ---
wine (c47c4d54bdf9a0f2100045fb6bc163291960fa05) fails to compile:
``` CCLD loader/wine64-preloader loader/preloader.o: in function `wld_start': /home/eric/wine/wine/loader/preloader.c:1402:(.text+0xc33): failed to convert GOTPCREL relocation against '_start'; relink with --no-relax collect2: error: ld returned 1 exit status ```
adding -Wl,--no-relax to preloader link operation fixes the issue (at least allows linking, and notepad starts)
$ uname -a Linux fedora.home 6.3.8-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 15 02:15:40 UTC 2023 x86_64 GNU/Linux
(split from https://bugs.winehq.org/show_bug.cgi?id=55050)