FreeBSD Bugzilla – Attachment 212366 Details for
Bug 244777
emulators/qemu-user-static-devel: Fix build with lld 10.0.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix emulators/qemu-user-static-devel build with lld 10.0.0
emulators__qemu-user-static-devel-fix-lld10-build-1.diff (text/plain), 3.29 KB, created by
Dimitry Andric
on 2020-03-12 21:24:38 UTC
(
hide
)
Description:
Fix emulators/qemu-user-static-devel build with lld 10.0.0
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2020-03-12 21:24:38 UTC
Size:
3.29 KB
patch
obsolete
>Index: emulators/qemu-user-static-devel/files/patch-configure >=================================================================== >--- emulators/qemu-user-static-devel/files/patch-configure (nonexistent) >+++ emulators/qemu-user-static-devel/files/patch-configure (working copy) >@@ -0,0 +1,52 @@ >+--- configure.orig 2019-12-12 02:59:17 UTC >++++ configure >+@@ -5954,27 +5954,30 @@ if ( [ "$linux_user" = yes ] || [ "$bsd_user" = yes ] >+ cat > $TMPC <<EOF >+ int main(void) { return 0; } >+ EOF >+- textseg_ldflags="-Wl,-Ttext-segment=$textseg_addr" >++ textseg_ldflags="-Wl,--image-base=$textseg_addr" >+ if ! compile_prog "" "$textseg_ldflags"; then >+- # In case ld does not support -Ttext-segment, edit the default linker >+- # script via sed to set the .text start addr. This is needed on FreeBSD >+- # at least. >+- if ! $ld --verbose >/dev/null 2>&1; then >+- error_exit \ >+- "We need to link the QEMU user mode binaries at a" \ >+- "specific text address. Unfortunately your linker" \ >+- "doesn't support either the -Ttext-segment option or" \ >+- "printing the default linker script with --verbose." \ >+- "If you don't want the user mode binaries, pass the" \ >+- "--disable-user option to configure." >+- fi >++ textseg_ldflags="-Wl,-Ttext-segment=$textseg_addr" >++ if ! compile_prog "" "$textseg_ldflags"; then >++ # In case ld does not support -Ttext-segment, edit the default linker >++ # script via sed to set the .text start addr. This is needed on FreeBSD >++ # at least. >++ if ! $ld --verbose >/dev/null 2>&1; then >++ error_exit \ >++ "We need to link the QEMU user mode binaries at a" \ >++ "specific text address. Unfortunately your linker" \ >++ "doesn't support either the -Ttext-segment option or" \ >++ "printing the default linker script with --verbose." \ >++ "If you don't want the user mode binaries, pass the" \ >++ "--disable-user option to configure." >++ fi >+ >+- $ld --verbose | sed \ >+- -e '1,/==================================================/d' \ >+- -e '/==================================================/,$d' \ >+- -e "s/[.] = [0-9a-fx]* [+] SIZEOF_HEADERS/. = $textseg_addr + SIZEOF_HEADERS/" \ >+- -e "s/__executable_start = [0-9a-fx]*/__executable_start = $textseg_addr/" > config-host.ld >+- textseg_ldflags="-Wl,-T../config-host.ld" >++ $ld --verbose | sed \ >++ -e '1,/==================================================/d' \ >++ -e '/==================================================/,$d' \ >++ -e "s/[.] = [0-9a-fx]* [+] SIZEOF_HEADERS/. = $textseg_addr + SIZEOF_HEADERS/" \ >++ -e "s/__executable_start = [0-9a-fx]*/__executable_start = $textseg_addr/" > config-host.ld >++ textseg_ldflags="-Wl,-T../config-host.ld" >++ fi >+ fi >+ fi >+ fi > >Property changes on: emulators/qemu-user-static-devel/files/patch-configure >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244777
: 212366