elfloader 0.16.0

A rust library to load ELF files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// gcc -o tls.x86_64 tls.c -fPIC -fPIE
// aarch64-linux-gnu-gcc -o tls.aarch64 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);
}