When generating XCOFF, the compiler generates a csect with an internal name. Each function results in a label within the csect. This patch replaces the internal name ".text" with an empty string "". This avoids adding special code to handle a function text() in the source file, and works better with some XCOFF tools that are confused when the csect and the first function have the same address. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D154854
16 lines
526 B
LLVM
16 lines
526 B
LLVM
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -filetype=obj -o %t.o < %s
|
|
; RUN: llvm-objdump --syms %t.o | FileCheck %s
|
|
|
|
; CHECK: SYMBOL TABLE:
|
|
; CHECK-NEXT: 0000000000000000 df *DEBUG* 0000000000000000 <stdin>
|
|
; CHECK-NEXT: 0000000000000000 l .text 000000000000001e
|
|
; CHECK-NEXT: 0000000000000000 g F .text (csect: ) 0000000000000000 .cold_fun
|
|
; CHECK-NEXT: 0000000000000020 g O .data 0000000000000018 cold_fun
|
|
|
|
define dso_local void @cold_fun() #1 {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
attributes #1 = { cold }
|