Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/alignment/alignment.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//#Object:runtime.c
//#TestUpdateInPlace:true

#include "runtime.h"
#include "../common/runtime.h"

#define ALIGNMENT 65536

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
//#ThinArchive:runtime.c
//#ThinArchive:empty.a

#include "runtime.h"
#include "../common/runtime.h"

int bar(void);
int does_not_exist(void);
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/as-needed-weak/as-needed-weak.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//#DiffIgnore:.dynamic.DT_RELAENT
//#DiffIgnore:rel.undefined-weak.dynamic.R_X86_64_GLOB_DAT

#include "runtime.h"
#include "../common/runtime.h"

__attribute__((weak)) int fn1(void);

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/call-via-defsym/call-via-defsym.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//#Object:call-via-defsym-1.c
//#LinkArgs:-znow --defsym=foo=bar

#include "runtime.h"
#include "../common/runtime.h"

int foo();
int __attribute__((weak)) bar(void) { return 8; }
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/comments/comments.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//#Object:runtime.c
//#TestUpdateInPlace:true

#include "runtime.h"
#include "../common/runtime.h"

int v0(void);
int v1(void);
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/common-section/common-section.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//#Object:runtime.c
//#EnableLinker:lld

#include "runtime.h"
#include "../common/runtime.h"

int a;
extern int data[];
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/common/runtime.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "runtime.h"
#include "../common/runtime.h"

#include <inttypes.h>
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/copy-relocations/copy-relocations.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//#ExpectSym:_start section=".text"
//#ExpectSym:w4

#include "runtime.h"
#include "../common/runtime.h"

// These two symbols are at the same address in the shared object, so references
// to both should point to the same copy relocation and that location should be
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/custom-section/custom-section.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//#Config:object:default
//#Object:custom_section0.c

#include "runtime.h"
#include "../common/runtime.h"

static int foo1 __attribute__((used, section("foo"))) = 2;
static int foo2 __attribute__((used, section("foo"))) = 5;
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/data-pointers/data-pointers.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// necessary.
//#DiffIgnore:section.got

#include "runtime.h"
#include "../common/runtime.h"

extern int foo[8];
extern int bar[8];
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/data/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <stddef.h>

#include "runtime.h"
#include "../common/runtime.h"

static char data1[] = "QQQ";

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/eh-frame/eh-frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <stdint.h>

#include "runtime.h"
#include "../common/runtime.h"

typedef uint32_t u32;

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/entry-arg/entry-arg.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//#ExpectSym:custom_entry section=".text"
//#TestUpdateInPlace:true

#include "runtime.h"
#include "../common/runtime.h"

void custom_entry(void) {
runtime_init();
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/entry-in-shared/entry-in-shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//#DiffIgnore:.dynamic.DT_RELA*
//#Mode:dynamic

#include "runtime.h"
#include "../common/runtime.h"

void _start(void) {
runtime_init();
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/executable-start/executable-start.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
//#Shared:force-dynamic-linking.c
//#DiffIgnore:.dynamic.DT_NEEDED

#include "../common/runtime.h"
#include "ptr_black_box.h"
#include "runtime.h"

extern char __executable_start;

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/force-undefined/force-undefined.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//#ExpectSym:bar
//#ExpectSym:is_archive0_loaded

#include "runtime.h"
#include "../common/runtime.h"

__attribute__((weak)) int is_archive0_loaded() { return 0; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <stddef.h>

#include "../common/runtime.h"
#include "global_definitions.h"
#include "runtime.h"

// Returns the passed value, but don't let the compiler make any assumptions
// about the returned value.
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/gnu-unique/gnu-unique.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//#Object:gnu-unique-1.cc
//#Object:gnu-unique-2.cc

#include "runtime.h"
#include "../common/runtime.h"

typedef int (*get_int_fn_t)(int);

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/got-ref-to-local/got-ref-to-local.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//#Object:runtime.c
//#Arch: x86_64

#include "runtime.h"
#include "../common/runtime.h"

typedef int (*fnptr)(void);

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/hidden-ref/hidden-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//#Shared:hidden-ref-1.c
//#Archive:hidden-ref-2.c

#include "runtime.h"
#include "../common/runtime.h"

__attribute__((visibility(("hidden")))) int foo(void);

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/hidden-undef/hidden-undef.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//#Shared:hidden-undef-lib.c
//#ExpectError:foo

#include "runtime.h"
#include "../common/runtime.h"

// foo is declared hidden — must not be resolved from the DSO above.
__attribute__((visibility("hidden"))) int foo(void);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
//#Config:no-pie:default
//#CompArgs:-fno-pie

#include "../common/runtime.h"
#include "ifunc_init.h"
#include "runtime.h"

typedef void (*Func)(void);

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/ifunc-alias/ifunc-alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
//#CompArgs:-fno-pie
//#DiffIgnore:section.rela.plt.link

#include "../common/runtime.h"
#include "ifunc_init.h"
#include "init.h"
#include "runtime.h"

static int target_func(void) { return 42; }

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/ifunc/ifunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
//#ExpectSym:compute_value32$plt section=".plt.got"
//#NoSym:compute_unused$plt

#include "../common/runtime.h"
#include "ifunc_init.h"
#include "init.h"
#include "runtime.h"

extern int compute_value10(void);
extern int compute_value32(void);
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/init-order/init-order.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//#DiffIgnore:section.data
//#DiffIgnore:section.rodata

#include "../common/runtime.h"
#include "init.h"
#include "runtime.h"

static int ctors_init_val = 0;

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/init-test/init-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "init.h"

#include "runtime.h"
#include "../common/runtime.h"

static int value = 0;

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/internal-syms/internal-syms.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

//#Object:runtime.c

#include "runtime.h"
#include "../common/runtime.h"

struct Rela {
long long a, b, c;
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/link-args/link-args.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
//#LinkArgs:-z foobar
//#ExpectWarning:warning.*foobar

#include "runtime.h"
#include "../common/runtime.h"

void _start(void) {
runtime_init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
//#LinkArgs:-shared
//#ExpectDynSym:__executable_start

#include "runtime.h"
#include "../common/runtime.h"

// User defines _end - linker should not create a conflicting symbol
char _end __attribute__((weak)) = 42;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
//#Archive:empty.c:-flto
//#ExpectError:(Error from linker plugin: Invalid parallelism level: foo|Wild was compiled without linker-plugin support)

#include "runtime.h"
#include "../common/runtime.h"

int foo();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <stddef.h>

#include "runtime.h"
#include "../common/runtime.h"

int value = 42;
extern const char start_of_text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//#ExpectSym:app_code section=".text.app"
//#ExpectSym:begin_here section=".text"

#include "runtime.h"
#include "../common/runtime.h"

extern int startup_code(void);
extern int app_code(void);
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/max-page-size/max-page-size.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// It seems that large page sizes are not permitted in RISC-V QEMU
//#SkipArch: riscv64

#include "runtime.h"
#include "../common/runtime.h"

int _start() {
runtime_init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//#DiffIgnore:.dynamic.DT_RELA*
//#DiffIgnore:section.got

#include "runtime.h"
#include "../common/runtime.h"

int from_so(void);

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/no-start/no-start.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//#LinkArgs:-z now --gc-sections
//#RunEnabled:false

#include "runtime.h"
#include "../common/runtime.h"

// Provided this is the first function, it'll get used as the entry point - at
// least by GNU ld. LLD doesn't set an entry point in this case.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//#DiffIgnore:segment.PT_DYNAMIC.*
//#DiffIgnore:section.got

#include "runtime.h"
#include "../common/runtime.h"

extern const char s1h[];
extern const char s2h[];
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/old-init/old-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//#EnableLinker:lld
//#Arch: x86_64

#include "runtime.h"
#include "../common/runtime.h"

int _init();
int _fini();
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/output-kind/output-kind.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
//#SkipLinker:ld
//#Mode:unspecified

#include "runtime.h"
#include "../common/runtime.h"

void _start(void) {
runtime_init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
//#EnableLinker:lld
//#SkipLinker:ld

#include "../common/runtime.h"
#include "init.h"
#include "runtime.h"

int target = 42;

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/preinit-array/preinit-array.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//#RequiresGlibc:true
//#Mode:dynamic

#include "runtime.h"
#include "../common/runtime.h"

int exit_code;

Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/relocatables/relocatables.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//#Object:runtime.c
//#Relocatable:relocatable-1.c,relocatable-2.c

#include "runtime.h"
#include "../common/runtime.h"

int add(int, int);
int subtract(int, int);
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/segment-end-syms/segment-end-syms.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

//#Config:pie:default

#include "../common/runtime.h"
#include "ptr_black_box.h"
#include "runtime.h"

extern char _etext;
extern char __etext;
Expand Down
2 changes: 1 addition & 1 deletion wild/tests/sources/elf/shared-priority/shared-priority.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//#Archive:shared-priority-1.c
//#Shared:shared-priority-2.c

#include "runtime.h"
#include "../common/runtime.h"

int foo(void);

Expand Down
Loading
Loading