1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-10 19:57:19 +03:00
This commit is contained in:
Rui Ueyama 2024-03-27 18:42:02 +09:00
parent 6e5ae45c1a
commit 4e3364ddd3
29 changed files with 0 additions and 30 deletions

View File

@ -14,7 +14,6 @@ readelf -W --dyn-syms $t/exe1 | grep -Fq '__global_pointer$'
$CC -B. -o $t/exe2 $t/a.o -fPIE
readelf -W --dyn-syms $t/exe2 | grep -Fq '__global_pointer$'
cat <<EOF | $CC -o $t/b.o -c -xc - -fPIC
#include <stdio.h>
int hello() {

View File

@ -25,7 +25,6 @@ __attribute__((tls_model("global-dynamic"))) static _Thread_local int x5 = 5;
int get_x5() { return x5; }
EOF
cat <<EOF | $GCC -fPIC -fno-plt -c -o $t/c.o -xc -
__attribute__((tls_model("global-dynamic"))) _Thread_local int x4 = 4;
__attribute__((tls_model("global-dynamic"))) static _Thread_local int x6 = 6;

View File

@ -26,7 +26,6 @@ __attribute__((tls_model("global-dynamic"))) static _Thread_local int x5 = 5;
int get_x5() { return x5; }
EOF
cat <<EOF | $GCC -fPIC -c -o $t/c.o -xc -
__attribute__((tls_model("global-dynamic"))) _Thread_local int x4 = 4;
__attribute__((tls_model("global-dynamic"))) static _Thread_local int x6 = 6;

View File

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

View File

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

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
cat <<EOF | $CC -o $t/a.o -c -x assembler -
.globl __x86.get_pc_thunk.bx
.section .gnu.linkonce.t.__x86.get_pc_thunk.bx,"ax"

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
echo '.section foo,"R"' | $CC -o /dev/null -c -xassembler - 2> /dev/null || skip
cat <<EOF | $CC -o $t/a.o -c -xc -

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
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
cat <<EOF | $CC -o $t/a.o -c -xc - -mcmodel=large
#include <stdio.h>
char arr1[0xc0000000];

View File

@ -3,7 +3,6 @@
test_cflags -static || 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
# 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
cat <<'EOF' | $CC -o $t/a.o -c -x assembler -
.text
.globl main

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
cat <<EOF | $GCC -mtls-dialect=gnu -fPIC -c -o $t/a.o -xc - -mcmodel=large
#include <stdio.h>
@ -26,7 +25,6 @@ static _Thread_local int x5 = 5;
int get_x5() { return x5; }
EOF
cat <<EOF | $GCC -mtls-dialect=gnu -fPIC -c -o $t/c.o -xc - -mcmodel=large
_Thread_local int x4 = 4;
static _Thread_local int x6 = 6;

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
cat <<EOF | $CC -c -o $t/a.o -x assembler -
.globl x, y
.section .tbss,"awT",@nobits

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
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
cat <<EOF | $CC -fPIC -o $t/a.o -c -xassembler -
.globl get_foo
.type get_foo, @function

View File

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

View File

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

View File

@ -1,7 +1,6 @@
#!/bin/bash
. $(dirname $0)/common.inc
cat <<EOF | $CC -fPIC -o $t/a.o -c -xc -
#include <stdio.h>
void hello() { printf("Hello"); }