1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-11 13:06:59 +03:00
This commit is contained in:
Rui Ueyama 2024-03-25 17:48:37 +09:00
parent 8df5a76203
commit 0edbe29d38
39 changed files with 0 additions and 55 deletions

View File

@ -1,9 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -o $t/a.o -c -xc -
void _start() {}
EOF

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
test_cflags -fcf-protection || skip
cat <<EOF | $CC -o $t/a.o -c -xc - -ffunction-sections -O -fcf-protection

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
test_cflags -fcf-protection || skip
cat <<EOF | $CC -o $t/a.o -c -xc - -fno-function-sections -O -fcf-protection

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CXX -c -o $t/a.o -xc++ -fPIC -
int main() {

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -c -xassembler -o $t/a.o -
.globl main

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -o $t/a.o -c -x assembler -
.globl __x86.get_pc_thunk.bx

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
echo '.section foo,"R"' | $CC -o /dev/null -c -xassembler - 2> /dev/null || skip

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
echo 'int main() {}' | $CC -m32 -o $t/exe -xc - >& /dev/null \
|| skip

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
echo 'int main() {}' | $CC -m32 -o $t/exe -xc - >& /dev/null \
|| skip

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
echo 'int main() {}' | $CC -m32 -o $t/exe -xc - >& /dev/null \
|| skip

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -c -o $t/a.o -x assembler -
.section .init_array,"aw",@init_array

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -c -o $t/a.o -x assembler -
.globl init1, init2, fini1, fini2

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -o $t/a.o -c -xc - -mcmodel=large
#include <stdio.h>

View File

@ -1,9 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
test_cflags -static || skip
cat <<'EOF' | $CC -o $t/a.o -c -x assembler -

View File

@ -3,9 +3,6 @@
test_cflags -static || skip
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -o $t/a.o -c -x assembler -
.text
.globl main

View File

@ -1,9 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
echo endbr64 | $CC -o /dev/null -c -xassembler - 2> /dev/null || skip
$CC -fcf-protection=branch -c /dev/null -o /dev/null -xc 2> /dev/null || skip

View File

@ -4,9 +4,6 @@
# OneTBB isn't tsan-clean
nm mold | grep -q '__tsan_init' && skip
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
# Binutils 2.32 injects their own .note.gnu.property section interfering with the tests
test_cflags -Xassembler -mx86-used-note=no && CFLAGS="-Xassembler -mx86-used-note=no" || CFLAGS=""

View File

@ -3,7 +3,6 @@
test_cflags -static || skip
[ $MACHINE = x86_64 ] || skip
# Binutils 2.32 injects their own .note.gnu.property section interfering with the tests
test_cflags -Xassembler -mx86-used-note=no && CFLAGS="-Xassembler -mx86-used-note=no" || CFLAGS=""

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
# Binutils 2.32 injects their own .note.gnu.property section interfering with the tests
test_cflags -Xassembler -mx86-used-note=no && CFLAGS="-Xassembler -mx86-used-note=no" || CFLAGS=""

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -o $t/a.o -c -x assembler -
.text

View File

@ -3,7 +3,6 @@
is_musl && skip
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -c -o $t/a.o -x assembler -
.globl preinit, init, fini

View File

@ -2,7 +2,6 @@
. $(dirname $0)/common.inc
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
echo ret | cc -c -o /dev/null -xassembler -Wa,-mrelax-relocations=yes - 2> /dev/null || skip
cat <<EOF | $CC -o $t/a.o -c -x assembler -Wa,-mrelax-relocations=yes -

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -o $t/a.o -c -x assembler -
.globl foo

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -o $t/a.o -c -x assembler -
foo: jmp 0

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -fPIC -c -o $t/a.o -x assembler -
.data

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -c -o $t/a.o -xc -
#include <stdint.h>

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -o $t/a.o -c -x assembler -
.globl _start

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $GCC -mtls-dialect=gnu -fPIC -c -o $t/a.o -xc - -mcmodel=large
#include <stdio.h>

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || [[ $MACHINE = riscv* ]] || skip
cat <<EOF | $CC -c -o $t/a.o -x assembler -
.globl x, y

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $GCC -ftls-model=local-dynamic -fPIC -c -o $t/a.o -xc - -mcmodel=large
#include <stdio.h>

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -fPIC -o $t/a.o -c -xassembler -
.globl get_foo

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -c -o $t/a.o -x assembler -
.section .data.foo.1,"aw",@progbits

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -o $t/a.o -c -xassembler -
.section .note.GNU-stack, "x"

View File

@ -4,9 +4,6 @@
# Skip if libc is musl
is_musl && skip
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -c -o $t/a.o -x assembler -
.globl fn
fn:

View File

@ -4,9 +4,6 @@
# Skip if libc is musl
is_musl && skip
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -c -o $t/a.o -x assembler -
.globl fn
fn:

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
echo endbr64 | $CC -o /dev/null -c -xassembler - 2> /dev/null || skip
cat <<EOF | $CC -o $t/a.o -c -x assembler -

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
cat <<EOF | $CC -fPIC -o $t/a.o -c -xc -
#include <stdio.h>

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
[ $MACHINE = x86_64 ] || skip
echo endbr64 | $CC -o /dev/null -c -xassembler - 2> /dev/null || skip
cat <<EOF | $CC -o $t/a.o -c -x assembler -

View File

@ -4,9 +4,6 @@
# Skip if libc is musl
is_musl && skip
# Skip if target is not x86-64
[ $MACHINE = x86_64 ] || skip
cat <<'EOF' | $CC -c -o $t/a.o -x assembler -
.globl fn1
fn1: