[lld] [TEST] chained fixups + dead_strip (PR #86841)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 27 10:42:44 PDT 2024


https://github.com/alx32 created https://github.com/llvm/llvm-project/pull/86841

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

>From ee8f969fa42a20122bf3445d3b0da12d60ec4bb4 Mon Sep 17 00:00:00 2001
From: Alex B <alexborcan at meta.com>
Date: Wed, 27 Mar 2024 10:41:46 -0700
Subject: [PATCH] [TEST] chained fixups + dead_strip

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
---
 lld/test/MachO/chained-fixups-addend.s | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lld/test/MachO/chained-fixups-addend.s b/lld/test/MachO/chained-fixups-addend.s
index f82da13b3ba28f..9d97c9510bfcdb 100644
--- a/lld/test/MachO/chained-fixups-addend.s
+++ b/lld/test/MachO/chained-fixups-addend.s
@@ -10,7 +10,7 @@
 
 ## We can use the DYLD_CHAINED_IMPORT import format if 0 <= ADDEND <= 255 bytes.
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/main.s -o %t/main.o --defsym ADDEND=0
-# RUN: %lld -lSystem -dylib %t/main.o -L%t -ldylib -fixup_chains -o %t/out
+# RUN: %lld -lSystem -dylib %t/main.o -L%t -ldylib -fixup_chains -o %t/out -dead_strip
 # RUN: llvm-objdump --macho --chained-fixups --dyld-info %t/out | \
 # RUN:     FileCheck %s -D#OUTLINE=0 -D#ADDEND=0 -D#%x,REBASE=0x1000 --check-prefixes=IMPORT,COMMON
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/main.s -o %t/main.o --defsym ADDEND=255



More information about the llvm-commits mailing list