diff options
Diffstat (limited to 'src/util/fipstools/delocate/testdata/x86_64-Sections/in.s')
-rw-r--r-- | src/util/fipstools/delocate/testdata/x86_64-Sections/in.s | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/util/fipstools/delocate/testdata/x86_64-Sections/in.s b/src/util/fipstools/delocate/testdata/x86_64-Sections/in.s new file mode 100644 index 00000000..8358a4c5 --- /dev/null +++ b/src/util/fipstools/delocate/testdata/x86_64-Sections/in.s @@ -0,0 +1,36 @@ + # .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 |