boringssl/util/fipstools/delocate/testdata/x86_64-Sections/in.s
David Benjamin 5baee45652 Use Go modules with delocate.
This makes running go test, etc., in util/fipstools/delocate work! This
adds a go_executable command to CMake like:

  go_executable(delocate boringssl.googlesource.com/boringssl/util/fipstools/delocate)

which internally gets dependencies and whatnot so it behaves like usual
Go.

Update-Note: delocate has been rearranged a bit.
Change-Id: I244a7317dd8d4f2ab77a0daa624ed3e0b385faef
Reviewed-on: https://boringssl-review.googlesource.com/31885
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
2018-09-17 22:19:52 +00:00

37 lines
644 B
ArmAsm

# .text stays in .text
.text
movq %rax, %rax
# -ffunction-sections is undone.
.section .text.foo,"ax",@progbits
.globl foo
foo:
ret
# .rodata is moved to .text.
.section .rodata
.long 42
.string "Hello world, esc\ape characters are \"fun\"\\"
# Compilers sometimes emit extra rodata sections.
.section .rodata.str1.1,"aMS",@progbits,1
.string "NIST P-256"
.text
# A number of sections are left alone.
.section .init_array,"aw"
.align 8
.quad foo
.section .rodata
.align 16
.section .debug_info,"",@progbits
.Ldebug_info0:
.long 0x1b35e
.value 0x4
.long .L1
.byte 0x8
.uleb128 0x1
.long .L2
.byte 0x1
.long .L3