diff options
author | midipix <writeonce@midipix.org> | 2017-10-15 11:13:22 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-10-15 15:43:27 -0400 |
commit | f3bf959aeb677492160fc7922dbb2015776cb2d2 (patch) | |
tree | f22856e8b1383cc8ece37ccad0090e4ea2cb1f1e | |
parent | 0f58d01248e1bf61742137a9332f1e008c8f733e (diff) | |
download | cbb-gcc-4.6.4-f3bf959aeb677492160fc7922dbb2015776cb2d2.tar.bz2 cbb-gcc-4.6.4-f3bf959aeb677492160fc7922dbb2015776cb2d2.tar.xz |
midipix target: integrated the ldso design options (-mldso, -mvrfs).
-rw-r--r-- | gcc/config/i386/midipix.opt | 4 | ||||
-rw-r--r-- | libc/cbb-musl-pe.h | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/config/i386/midipix.opt b/gcc/config/i386/midipix.opt index e2d30030e..91ffdc2c3 100644 --- a/gcc/config/i386/midipix.opt +++ b/gcc/config/i386/midipix.opt @@ -47,4 +47,8 @@ mldso Target use a dynamic loader +mvrfs +Target +default to a virtual root file system (aka standalone application) + ; Retain blank line above diff --git a/libc/cbb-musl-pe.h b/libc/cbb-musl-pe.h index 88ac3ace2..4495da880 100644 --- a/libc/cbb-musl-pe.h +++ b/libc/cbb-musl-pe.h @@ -80,16 +80,17 @@ extern "C" { "%{static:" \ " --as-needed -lntapi" \ " --as-needed -ldalist" \ - " --as-needed -lpemagine}" + " --as-needed -lpemagine}"\ + "%{!shared:%{mldso|mvrfs:" \ + " --as-needed -lldso}}" #undef STARTFILE_SPEC #define STARTFILE_SPEC "%R/lib/crti.o " \ - "%{!shared:" \ - "%{mldso:%R/lib/crtldso.o}} " \ - "%{!shared:%R/lib/" \ - "%{static:S}crt1.o}} " \ "%{!shared:%{mposix:%R/lib/crtposix.o}} " \ "%{!shared:%{mdinga:%R/lib/crtdinga.o}} " \ + "%{!shared:%{mldso:%R/lib/crtldso.o}} " \ + "%{!shared:%{mvrfs:%R/lib/crtvrfs.o}} " \ + "%{!shared:%R/lib/%{static:S}crt1.o} " \ "%{shared:%R/lib/crte.o} " \ "%{static:crtbeginT.o%s;" \ "shared|pie:crtbeginS.o%s;" \ |