Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
ignore a few more dynamic entries that mruby generates
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed Mar 16, 2018
1 parent f5281b1 commit 4bcf75b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/crt0_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ static bool relocate(uint8_t *aslr_base, dyn_info_t *dyn_info) {

while(dynamic->d_tag > 0) {
switch(dynamic->d_tag) {
case 2: // DT_PLTRELSZ
break;
case 3: // DT_PLTGOT
break;
case 4: // DT_HASH
break;
case 5: // DT_STRTAB
Expand All @@ -106,6 +110,10 @@ static bool relocate(uint8_t *aslr_base, dyn_info_t *dyn_info) {
break;
case 16: // DT_SYMBOLIC
break;
case 20: // DT_PLTREL
break;
case 23: // DT_JMPREL
break;
case 25: // DT_INIT_ARRAY
if(dyn_info->init_array != NULL) {
return true;
Expand Down

0 comments on commit 4bcf75b

Please sign in to comment.