<commit_before># REQUIRES: x86

## Test SHN_ABS symbols are not copy relocated.

# RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/copy-rel-abs.s -o %t1.o
# RUN: ld.lld -shared %t1.o -o %t1.so
# RUN: llvm-readelf --dyn-syms %t1.so | FileCheck --check-prefix=SYMS %s

# SYMS: [[ADDR:[0-9a-f]+]] {{.*}}   5 bar
# SYMS: [[ADDR]]           {{.*}}   5 foo
# SYMS: [[ADDR]]           {{.*}} ABS zed

# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o
# RUN: ld.lld %t2.o %t1.so -o %t2
# RUN: llvm-objdump -t %t2 | FileCheck %s --implicit-check-not=zed

# CHECK: SYMBOL TABLE:
# CHECK: .bss.rel.ro {{.*}} foo
# CHECK: .bss.rel.ro {{.*}} bar

.global _start
_start:
.quad foo
<commit_msg>Don't false-positive match against binary path.<commit_after># REQUIRES: x86

## Test SHN_ABS symbols are not copy relocated.

# RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/copy-rel-abs.s -o %t1.o
# RUN: ld.lld -shared %t1.o -o %t1.so
# RUN: llvm-readelf --dyn-syms %t1.so | FileCheck --check-prefix=SYMS %s

# SYMS: [[ADDR:[0-9a-f]+]] {{.*}}   5 bar
# SYMS: [[ADDR]]           {{.*}}   5 foo
# SYMS: [[ADDR]]           {{.*}} ABS zed

# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o
# RUN: ld.lld %t2.o %t1.so -o %t2
# RUN: llvm-objdump -t %t2 | FileCheck %s

# CHECK: SYMBOL TABLE:
# CHECK-NOT: zed
# CHECK: .bss.rel.ro {{.*}} foo
# CHECK-NOT: zed
# CHECK: .bss.rel.ro {{.*}} bar
# CHECK-NOT: zed

.global _start
_start:
.quad foo

{'fraction_non_alphanumeric': 0.2121001390820584, 'fraction_numerical': 0.031988873435326845, 'mean_word_length': 2.8373333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6683782', 'n_tokens_mistral': 676, 'n_tokens_neox': 653, 'n_words': 162}