mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 02:46:11 +00:00

The hack is irrelevant for two reasons: * binutils 2.24 is quite old and cannot handle R_X86_64_REX_GOTPCRELX from 2016 onwards anyway * `canMergeToProgbits` allows combining SHT_INIT_ARRAY/SHT_FINI_ARRAY into SHT_PROGBITS
20 lines
437 B
ArmAsm
20 lines
437 B
ArmAsm
// REQUIRES: x86
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
// RUN: ld.lld %t -o %t.exe
|
|
// RUN: llvm-readobj --sections %t.exe | FileCheck %s
|
|
|
|
// CHECK: Name: .init_array
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
// CHECK: Name: .fini_array
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
|
|
.globl _start
|
|
_start:
|
|
nop
|
|
|
|
.section .init_array.100, "aw", @progbits
|
|
.byte 0
|
|
.section .fini_array.100, "aw", @progbits
|
|
.byte 0
|