1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-15 14:36:25 +03:00
mold/test
Nehal J Wani be6d443bc8
[tests] Improve test for -spare-dynamic-tags
The default size and offsets of the .dynamic section are not necessarily
same with different builds of clang. For example, some builds can make
clang pass --hash-style=gnu to the linker and some --hash-style=both.

This change updates the test to compute the difference in size of the
.dynamic section before and after using the flag -spare-dynamic-tags,
making it independent of the compiler build.

Signed-off-by: Nehal J Wani <nehaljw.kkd1@gmail.com>
2021-07-03 22:35:42 -04:00
..
aarch64-hello-static.sh Add a stub for AArch64 2021-07-03 21:39:44 +09:00
allow-multiple-definition.sh Add -z muldefs as an alias to --allow-multiple-definition 2021-06-07 20:48:06 +09:00
ar-alignment.sh Handle ar header alignment correctly 2021-06-20 21:29:10 +09:00
as-needed2.sh DSOs referenced by used DSOs are considered used 2021-06-24 15:54:25 +09:00
as-needed-weak.sh Weak symbols shouldn't keep as-needed DSOs 2021-06-04 12:24:25 +09:00
as-needed.sh wip 2021-04-11 14:01:00 +09:00
auxiliary.sh wip 2021-03-23 14:46:59 +09:00
basic.sh wip 2021-03-01 16:28:16 +09:00
bsymbolic-functions.sh wip 2021-03-02 22:57:15 +09:00
bsymbolic.sh wip 2021-03-04 14:09:56 +09:00
build-id.sh Revert "Change the default build-id size from 20 to 16 bytes" 2021-06-04 12:32:28 +09:00
canonical-plt.sh wip 2021-03-02 20:24:31 +09:00
cmdline.sh Report an error for unknown -z flags 2021-06-07 20:53:35 +09:00
comment.sh Embed GIT commit hash to binary 2021-03-23 21:15:32 +09:00
common-archive.sh Do not register common symbols as lazy symbols 2021-06-21 08:36:16 +09:00
common-ref.sh Fix common symbol 2021-06-25 15:42:16 +09:00
common.sh Place common symbols into .common section 2021-03-25 17:55:59 +09:00
compress-debug-sections.sh Add --compress-debug-info=zlib-gnu 2021-06-03 23:57:06 +09:00
compressed-debug-info.sh Fix zlib-gnu-style compressed section decoding 2021-06-05 20:51:21 +09:00
copyrel-protected.sh wip 2021-04-11 14:01:00 +09:00
copyrel-relro.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
copyrel.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
ctors-dtors.sh Sort .{init,fini}_array and .[cd]tors 2021-05-31 01:11:45 +09:00
defs.sh wip 2021-04-11 14:01:00 +09:00
demangle.sh wip 2021-04-11 14:01:00 +09:00
discard.sh wip 2021-04-11 14:01:00 +09:00
dt_init.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
dt_needed.sh Do not embed a library fullpath if it is given by -l 2021-06-01 15:15:25 +09:00
duplicate-error.sh wip 2021-04-11 14:01:00 +09:00
dynamic-linker.sh wip 2021-04-11 14:01:00 +09:00
dynamic.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
empty-file.sh Allow empty input files 2021-06-21 09:33:35 +09:00
empty-version.sh Ignore empty symbol version 2021-06-16 22:41:50 +09:00
entry.sh Set the entry address to .text if entry point symbol is not defined 2021-06-04 15:30:32 +09:00
exception.sh Support GOT64, GOTPCREL64 and GOTPC64 relocations 2021-03-22 12:17:03 +09:00
exclude-libs2.sh Add -exclude-libs 2021-03-08 17:24:51 +09:00
exclude-libs.sh wip 2021-04-11 14:01:00 +09:00
execstack.sh Add -z execstack and -z noexecstack 2021-03-12 18:09:15 +09:00
export-dynamic.sh Fix broken tests 2021-05-29 14:20:56 +09:00
export-from-exe.sh Export more symbols from executable if they could overwrite dso syms 2021-06-15 01:47:53 +09:00
fatal-warnings.sh wip 2021-04-11 14:01:00 +09:00
filler.sh Refactor 2021-06-24 15:50:08 +09:00
filter.sh wip 2021-03-23 14:46:59 +09:00
gc-sections.sh wip 2021-04-11 14:13:55 +09:00
gnu-hash.sh wip 2021-03-01 16:28:16 +09:00
gnu-warning.sh Ignore .gnu.warning.* sections 2021-06-07 22:35:32 +09:00
hello-dynamic.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
hello-static.sh wip 2021-04-01 00:52:10 +09:00
help.sh Add --help 2021-05-08 20:10:41 +09:00
i386-hello-dynamic.sh wip 2021-03-31 20:13:36 +09:00
i386-hello-static.sh wip 2021-04-01 18:49:16 +09:00
i386-shared.sh Fix relocations for i386 PIC 2021-06-07 18:37:50 +09:00
i386-tls-gd.sh Fix relocations for i386 PIC 2021-06-07 18:37:50 +09:00
i386-tls-ld.sh Handle R_386_TLS_GD, R_386_TLS_LDM and R_386_TLS_LDO_32 2021-04-13 22:25:11 +09:00
i386-tlsdesc.sh Handle R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL 2021-04-14 15:01:52 +09:00
icf.sh Rename --icf to --icf=all for compatibility with lld and gold 2021-06-07 21:55:08 +09:00
ifunc-dso.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
ifunc-dynamic.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
ifunc-export.sh Do not set STT_GNU_IFUNC to symbols .dynsym 2021-06-21 10:32:30 +09:00
ifunc-static.sh wip 2021-03-01 22:04:42 +09:00
image-base.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
incompatible-libs.sh Do not embed a library fullpath if it is given by -l 2021-06-01 15:15:25 +09:00
init-array-priorities.sh Sort .{init,fini}_array and .[cd]tors 2021-05-31 01:11:45 +09:00
init-array.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
initfirst.sh Add -z initfirst 2021-04-10 18:16:01 +09:00
interpose.sh Add -z interpose 2021-04-10 18:18:56 +09:00
library-path-dynamic.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
link-order.sh Simplify input file priority 2021-05-31 17:09:40 +09:00
linker-script2.sh Fix handling of --sysroot 2021-06-30 22:15:19 +09:00
linker-script3.sh Fix handling of --sysroot 2021-06-30 22:15:19 +09:00
linker-script.sh wip 2021-03-01 16:28:16 +09:00
lto-gcc-error.sh Improve error message for an attempt of LTO 2021-06-26 15:05:05 +09:00
lto-llvm-error.sh Improve error message for an attempt of LTO 2021-06-26 15:05:05 +09:00
Makefile Parallelize tests 2021-05-29 16:05:38 +09:00
many-sections.sh Fix a broken test 2021-05-21 12:43:34 +09:00
mergeable-strings.sh wip 2021-04-10 15:58:25 +09:00
missing-but-ok.sh wip 2021-03-01 16:28:16 +09:00
missing-error.sh wip 2021-04-11 14:01:00 +09:00
mold-wrapper2.sh Split a function and add tests 2021-07-01 10:00:08 +09:00
mold-wrapper.sh Rename an envvar 2021-06-04 20:32:58 +09:00
no-quick-exit.sh wip 2021-04-06 17:55:05 +09:00
nocopyreloc.sh wip 2021-04-11 14:01:00 +09:00
note-property.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
note.sh Do not put non-alloc NOTE section into a PT_LOAD segment 2021-06-01 00:53:06 +09:00
now.sh wip 2021-04-11 14:01:00 +09:00
omagic.sh Add --omagic 2021-05-10 19:21:29 +09:00
pie.sh [tests] Fix pie test when cc isn't built with --enable-default-pie 2021-07-03 01:05:28 -04:00
plt-dso.sh Fix an issue that a .dynsym for PLT refers itself 2021-06-25 13:33:14 +09:00
plt.sh wip 2021-04-10 15:58:25 +09:00
pltgot.sh wip 2021-03-01 16:28:16 +09:00
preload.sh wip 2021-04-11 14:01:00 +09:00
protected.sh wip 2021-03-04 20:23:27 +09:00
push-pop-state.sh wip 2021-04-11 14:01:00 +09:00
relax.sh wip 2021-03-16 12:52:39 +09:00
reloc-overflow.sh wip 2021-04-11 14:01:00 +09:00
reloc.sh wip 2021-03-22 15:33:39 +09:00
relocatable-archive.sh Fix --relocatable 2021-06-14 13:48:26 +09:00
relocatable.sh Do not set executable bit for --relocatable outputs 2021-06-18 01:45:38 +09:00
relro.sh wip 2021-04-11 14:01:00 +09:00
repro.sh Create a .repro section if MOLD_REPRO environment variable is set 2021-05-02 20:49:00 +09:00
response-file.sh wip 2021-03-01 16:28:16 +09:00
retain-symbols-file.sh Add --retain-symbols-file 2021-05-27 00:31:08 +09:00
rpath.sh Add -R as an alias for -rpath 2021-05-29 13:42:10 +09:00
run.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
section-alignment.sh Fix section addresses 2021-06-17 23:48:31 +09:00
section-name.sh Add -z keep-text-section-prefix 2021-06-16 19:50:08 +09:00
shared.sh Fix tests for non-Ubuntu-20 systems 2021-07-03 14:26:38 +09:00
soname.sh Do not embed a library fullpath if it is given by -l 2021-06-01 15:15:25 +09:00
spare-dynamic-tags.sh [tests] Improve test for -spare-dynamic-tags 2021-07-03 22:35:42 -04:00
start-stop-symbol.sh Do not garbage-collect C-identifer sections 2021-06-18 12:57:12 +09:00
static-archive.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
stdout.sh Handle - as stdout 2021-04-28 19:15:20 +09:00
strip.sh wip 2021-04-11 14:01:00 +09:00
symbol-version.sh Allow to refer unversioned symbol within an object file 2021-05-30 18:03:21 +09:00
symtab.sh wip 2021-03-25 12:38:40 +09:00
synthetic-symbols.sh Add end, etext and edata symbols 2021-05-29 02:07:46 +09:00
sysroot-linker-script.sh Allow sysroot to be a relative path 2021-07-03 12:02:32 +09:00
sysroot.sh Fix handling of --sysroot 2021-06-30 22:15:19 +09:00
thin-archive.sh Handle thin archives containing absolute paths 2021-06-17 14:18:44 +09:00
tls-dso.sh Fix TPOFF32 relocation handling 2021-03-27 14:47:30 +09:00
tls-gd.sh Fix relocations for i386 PIC 2021-06-07 18:37:50 +09:00
tls-ld.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
tls-nopic.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
tls-pic.sh Do not hardcode Linux's ld.so path 2021-03-12 16:39:16 +09:00
tlsdesc.sh Handle R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL 2021-04-14 15:01:52 +09:00
trace-symbol.sh wip 2021-04-10 17:59:15 +09:00
trace.sh wip 2021-04-10 17:59:15 +09:00
undefined.sh wip 2021-04-11 14:01:00 +09:00
unique.sh Fix a test 2021-06-19 12:34:20 +09:00
unresolved-symbols.sh Change how to handle --unresolved-symbols=ignore 2021-06-20 14:31:36 +09:00
verbose.sh Ignore --verbose 2021-06-17 14:18:44 +09:00
version-script2.sh wip 2021-03-08 14:37:13 +09:00
version-script3.sh Support glob pattern in version script 2021-03-17 16:56:37 +09:00
version-script4.sh wip 2021-04-11 14:01:00 +09:00
version-script5.sh Accept extern "C" in version script 2021-06-25 16:48:40 +09:00
version-script6.sh Do not apply version scripts to DSO symbols 2021-06-27 21:44:42 +09:00
version-script.sh Write .gnu.version_d 2021-03-07 15:41:45 +09:00
version.sh Fix a broken test 2021-06-27 17:03:59 +09:00
versioned-undef.sh Do not write duplicate entries to .dynsym 2021-06-16 19:50:42 +09:00
warn-common.sh wip 2021-04-11 14:01:00 +09:00
warn-unresolved-symbols.sh Add --warn-unresolved-symbols and --error-unresolved-symbols 2021-06-14 00:04:07 +09:00
weak-export.sh Fix exported weak symbol 2021-06-27 12:37:14 +09:00
whole-archive.sh wip 2021-04-11 14:01:00 +09:00
wrap.sh Add -wrap option 2021-05-22 01:54:08 +09:00
z_nodump.sh Add -z nodump 2021-06-21 06:56:07 +09:00
z_origin.sh Add -z origin 2021-06-20 14:42:43 +09:00
z_text.sh Add -z {text,notext,textoff] 2021-06-17 14:18:44 +09:00