elfloader 0.15.0

A rust library to load ELF files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// gcc -o tls tls.c -fPIC -fPIE
#include <stdio.h>

__thread int tbss_entry = 0;
__thread int tdata_entry = 0xdeadbeef;

int main( int argc, const char* argv[] )
{
	for( int i = 0; i < argc; i++ )
	{
		printf( "arg %d: %s\n", i, argv[i] );
	}

	printf("arg %d %d", tbss_entry, tdata_entry);
}