[lld] [LLD][ELF]Skip non-inputsections to avoid invalid cast in Arm BE8 handling. (PR #188154)

Simi Pallipurath via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 08:15:54 PDT 2026


================
@@ -0,0 +1,34 @@
+/// REQUIRES: arm
+/// ARM big-endian(BE-8) reversal needs to account for explicit mapping
+/// symbols in data sections not represented as an InputSection. SHF_MERGE sections
+/// are an example of such a section.
+
+// RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi %s -o %t.o
+// RUN: ld.lld --be8 %t.o -shared -o %t
+// RUN: llvm-readobj --file-headers --sections --section-data %t | FileCheck %s
+
+// CHECK:      DataEncoding: BigEndian (0x2)
----------------
simpal01 wrote:

Done

https://github.com/llvm/llvm-project/pull/188154


More information about the llvm-commits mailing list