File: file2.c

package info (click to toggle)
linksem 0.8%2Bdfsg3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,376 kB
  • sloc: asm: 9,188; ansic: 5,856; ml: 2,918; yacc: 1,310; lex: 721; sh: 119; makefile: 63
file content (12 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
extern __fini_array_start;
extern __fini_array_end;

int _start(void) __attribute__((noreturn));
int _start(void)
{
	__asm__ volatile ("movq %0, %%rdi \n\
                   movq $60, %%rax          # exit \n\
                   syscall"
    : : "r"((char*) &__fini_array_end - (char*) &__fini_array_start) : "%rax", "%rdi" );
	__builtin_unreachable();
}