{simple,shoddy,smart} minsize-oriented linker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
418 B

#include <stdlib.h>
#include <stdio.h>
/*__attribute__((__section__(".rodata.hello-_start$f")))
static const char *f = "foo";*/
__attribute__((__externally_visible__, __section__(".text.startup._start"),
__noreturn__
#ifndef __clang__
, __naked__
#endif
))
int _start(void) {
//printf("hello world %s\n", f);
puts("Hello World!");
asm volatile("int3");//exit(42);
__builtin_unreachable();
}