Skip to content

Remove -no-pie case from indirect-goto-relocs.test #133067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Conversation

Rin18
Copy link

@Rin18 Rin18 commented Mar 26, 2025

This test was added in PR: #120267. The -no-pie case in the above mentioned test needs to be removed as subsequent changes have caused it to fail.

This test was added in PR: llvm#120267.
The -no-pie case in the above mentioned test needs to be removed
as subsequent changes have caused it to fail.
@llvmbot
Copy link
Member

llvmbot commented Mar 26, 2025

@llvm/pr-subscribers-bolt

Author: Ash Dobrescu (Rin18)

Changes

This test was added in PR: #120267. The -no-pie case in the above mentioned test needs to be removed as subsequent changes have caused it to fail.


Full diff: https://github.com/llvm/llvm-project/pull/133067.diff

1 Files Affected:

  • (modified) bolt/test/indirect-goto-relocs.test (-9)
diff --git a/bolt/test/indirect-goto-relocs.test b/bolt/test/indirect-goto-relocs.test
index 30175dcb0b9c9..25da99b3ad3a9 100644
--- a/bolt/test/indirect-goto-relocs.test
+++ b/bolt/test/indirect-goto-relocs.test
@@ -4,16 +4,7 @@
 RUN: %clang %cflags -pie %S/Inputs/indirect_goto.c -o %t.exe -Wl,-q
 RUN: llvm-bolt %t.exe -o %t.bolt --print-cfg | FileCheck --check-prefix=CHECK-PIE %s
 
-RUN: %clang %cflags -no-pie %S/Inputs/indirect_goto.c -o %t.exe -Wl,-q
-RUN: llvm-bolt %t.exe -o %t.bolt --print-cfg | FileCheck --check-prefix=CHECK-NO-PIE %s
-
 // Check that BOLT registers extra entry points for dynamic relocations with PIE.
 CHECK-PIE: Binary Function "main" after building cfg {
 CHECK-PIE: IsMultiEntry: 1
 CHECK-PIE: Secondary Entry Points : {{.*}}
-
-// Check that BOLT does not register extra entry points for dynamic relocations
-// without PIE
-CHECK-NO-PIE: Binary Function "main" after building cfg {
-CHECK-NO-PIE-NOT: IsMultiEntry: 1
-CHECK-NO-PIE-NOT: Secondary Entry Points : {{.*}}

Copy link
Contributor

@peterwaller-arm peterwaller-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is fixing a failing test and have already discussed it, I don't think you need to wait to merge this.

Copy link
Member

@paschalis-mpeis paschalis-mpeis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ash! LGTM.


That is indeed unrelated to #120267.

PR #120713 added isPop which now returns true here (for the test case), and converts some instructions to tail-calls. As a result handleRelocation processes a few more R_AARCH64_ABS64, which are legit for non-PIE binaries.

@Rin18 Rin18 merged commit a308d42 into llvm:main Mar 26, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants