[PATCH] D93954: ELF: Teach the linker about the 'B' augmentation string character.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 19:51:38 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGaed84542d5a0: ELF: Teach the linker about the 'B' augmentation string character. (authored by pcc).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93954/new/

https://reviews.llvm.org/D93954

Files:
  lld/ELF/EhFrame.cpp
  lld/test/ELF/eh-frame-cfi-b-key.s


Index: lld/test/ELF/eh-frame-cfi-b-key.s
===================================================================
--- /dev/null
+++ lld/test/ELF/eh-frame-cfi-b-key.s
@@ -0,0 +1,9 @@
+// REQUIRES: aarch64
+// RUN: llvm-mc -filetype=obj -triple aarch64-arm-none-eabi %s -o %t.o
+// RUN: ld.lld %t.o -o %t --icf=all --eh-frame-hdr
+
+.globl _start
+_start:
+.cfi_startproc
+.cfi_b_key_frame
+.cfi_endproc
Index: lld/ELF/EhFrame.cpp
===================================================================
--- lld/ELF/EhFrame.cpp
+++ lld/ELF/EhFrame.cpp
@@ -194,7 +194,7 @@
       readByte();
     else if (c == 'P')
       skipAugP();
-    else if (c != 'S')
+    else if (c != 'B' && c != 'S')
       failOn(aug.data(), "unknown .eh_frame augmentation string: " + aug);
   }
   return DW_EH_PE_absptr;
@@ -211,7 +211,7 @@
       skipAugP();
     else if (c == 'R')
       readByte();
-    else if (c != 'S')
+    else if (c != 'B' && c != 'S')
       failOn(aug.data(), "unknown .eh_frame augmentation string: " + aug);
   }
   return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93954.314786.patch
Type: text/x-patch
Size: 1030 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210106/28a7330d/attachment.bin>


More information about the llvm-commits mailing list