.file "shlib.c" .text .section .rodata.str1.8,"aMS",@progbits,1 .align 8 .LC0: .string "shlibgetglobal called, &shlibglobal = %p\n" .text .p2align 4 .globl shlibgetglobal .type shlibgetglobal, @function shlibgetglobal: .LFB23: .cfi_startproc endbr64 pushq %rbx .cfi_def_cfa_offset 16 .cfi_offset 3, -16 movq shlibglobal@GOTPCREL(%rip), %rbx movl $1, %edi xorl %eax, %eax leaq .LC0(%rip), %rsi movq %rbx, %rdx call __printf_chk@PLT movl (%rbx), %eax popq %rbx .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE23: .size shlibgetglobal, .-shlibgetglobal .section .rodata.str1.8 .align 8 .LC1: .string "accessmainglobal called, &mainglobal = %p, value = %d\n" .text .p2align 4 .globl accessmainglobal .type accessmainglobal, @function accessmainglobal: .LFB24: .cfi_startproc endbr64 movq mainglobal@GOTPCREL(%rip), %rdx leaq .LC1(%rip), %rsi movl $1, %edi xorl %eax, %eax movl (%rdx), %ecx jmp __printf_chk@PLT .cfi_endproc .LFE24: .size accessmainglobal, .-accessmainglobal .globl shlibglobal .bss .align 4 .type shlibglobal, @object .size shlibglobal, 4 shlibglobal: .zero 4 .ident "GCC: (Ubuntu 11.2.0-7ubuntu2) 11.2.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4: