Fix relocation of __bound_init
commitec1c83081dd741bd18ca1821bf52535c444dc111
authorThomas Preud'homme <robotux@celest.fr>
Mon, 17 Mar 2014 15:14:38 +0000 (17 23:14 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Mon, 17 Mar 2014 15:14:38 +0000 (17 23:14 +0800)
tree671577499ee3abdfd0cb332ab033dbd4f132384f
parent40e38597391aa05a61cef1c36e844690665c411a
Fix relocation of __bound_init

When bound check is enabled, tcc tries to relocate a call to
__bound_init in _init. This means that relocation (in tcc_add_bcheck)
must be done after libtcc1.a (which countains __bound_init) is loaded
but before crtn.o is loaded as this finalize _init.
tccelf.c