disable legacy init/fini processing on ARM
since the old, poorly-thought-out musl approach to init/fini arrays on ARM (when it was the only arch that needed them) was to put the code in crti/crtn and have the legacy _init/_fini code run the arrays, adding proper init/fini array support caused the arrays to get processed twice on ARM. I'm not sure skipping legacy init/fini processing is the best solution to the problem, but it works, and it shouldn't break anything since the legacy init/fini system was never used for ARM EABI.
This commit is contained in:
parent
4e3c6b4303
commit
1da53dad27
2 changed files with 6 additions and 0 deletions
|
|
@ -52,3 +52,5 @@ static inline void do_single_reloc(
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#define NO_LEGACY_INITFINI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue