mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
9a7bf438b5
and update ELF header e_flags. Currently gathering information such as symbol, section and data is done by collecting it in an MCAssembler object. From MCAssembler and MCAsmLayout objects ELFObjectWriter::WriteObject() forms and streams out the ELF object file. This patch just adds a few members to the MCAssember class to store and access the e_flag settings. It allows for runtime additions to the e_flag by assembler directives. The standalone assembler can get to MCAssembler from getParser().getStreamer().getAssembler(). This patch is the generic infrastructure and will be followed by patches for ARM and Mips for their target specific use. Contributer: Jack Carter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173882 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
410 B
ArmAsm
15 lines
410 B
ArmAsm
@ XFAIL:
|
|
@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \
|
|
@ RUN: elf-dump --dump-section-data | FileCheck -check-prefix=OBJ %s
|
|
.syntax unified
|
|
.text
|
|
.globl barf
|
|
.align 2
|
|
.type barf,%function
|
|
barf: @ @barf
|
|
@ BB#0: @ %entry
|
|
b foo
|
|
|
|
@@@ make sure the EF_ARM_EABIMASK comes out OK
|
|
@OBJ: 'e_flags', 0x05000000
|