Skip to content

Conversation

@patdoyle-google
Copy link
Contributor

similar to #140570

getting this error:

exit status 1
ld.lld: error: section '.text' address (0x8074) is smaller than image base (0x10000); specify --image-base

@llvmbot
Copy link
Member

llvmbot commented May 22, 2025

@llvm/pr-subscribers-lldb

Author: Pat Doyle (patdoyle-google)

Changes

similar to #140570

getting this error:

exit status 1
ld.lld: error: section '.text' address (0x8074) is smaller than image base (0x10000); specify --image-base


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

1 Files Affected:

  • (modified) lldb/test/Shell/SymbolFile/dissassemble-entry-point.s (+2-2)
diff --git a/lldb/test/Shell/SymbolFile/dissassemble-entry-point.s b/lldb/test/Shell/SymbolFile/dissassemble-entry-point.s
index c8059990237a1..2f74f6acad0ed 100644
--- a/lldb/test/Shell/SymbolFile/dissassemble-entry-point.s
+++ b/lldb/test/Shell/SymbolFile/dissassemble-entry-point.s
@@ -1,7 +1,7 @@
 # REQUIRES: lld, arm
 
 # RUN: llvm-mc -triple=thumbv7-eabi %s -filetype=obj -o %t.o
-# RUN: ld.lld %t.o -o %t --section-start=.text=0x8074 -e 0x8075 -s
+# RUN: ld.lld %t.o -o %t --image-base=0x8074 --section-start=.text=0x8074 -e 0x8075 -s
 # RUN: %lldb -x -b -o 'dis -s 0x8074 -e 0x8080' -- %t | FileCheck %s
 # CHECK:      {{.*}}[0x8074] <+0>: movs   r0, #0x2a
 # CHECK-NEXT: {{.*}}[0x8076] <+2>: movs   r7, #0x1
@@ -10,4 +10,4 @@
 _start:
     movs r0, #0x2a
     movs r7, #0x1
-    svc #0x0
\ No newline at end of file
+    svc #0x0

@patdoyle-google
Copy link
Contributor Author

@MaskRay FYI

@patdoyle-google
Copy link
Contributor Author

btw I don't have commit access yet so if you could merge for me that would be lovely :)

@MaskRay MaskRay merged commit 4fd48ac into llvm:main May 22, 2025
10 checks passed
@patdoyle-google patdoyle-google deleted the dissassemble-entry-point branch May 22, 2025 19:33
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.

3 participants