mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
807849965b
The linker just concatenates the .init and .fini sections which results in the complete _init and _fini functions. If needed the linker adds padding bytes due to an alignment. GNU ld is adding NOPs, which is fine. But e.g. mold is adding traps which results in broken _init and _fini functions. Thus this patch removes the alignment in .init and .fini sections in crtn.S files. We keep the 4 byte function alignment in crti.S files. As the assembler now also outputs the start of _init and _fini functions as multiples of 4 byte, it perhaps has to fill it. Although GNU as is using NOPs here, to be sure, we just keep the alignment with 0x07 (=NOPs) at the end of crti.S. In order to avoid an obvious NOP slide in _fini, this patch also uses an lg instead of lgr instruction. Then the emitted instructions needs a multiple of 4 bytes. |
||
---|---|---|
.. | ||
bits | ||
__longjmp.c | ||
add_n.S | ||
bsd-_setjmp.S | ||
bsd-setjmp.S | ||
configure | ||
configure.ac | ||
crti.S | ||
crtn.S | ||
dl-hwcap-check.h | ||
dl-hwcaps-subdirs.c | ||
dl-machine.h | ||
dl-trampoline.h | ||
dl-trampoline.S | ||
Implies | ||
Makefile | ||
s390x-mcount.h | ||
s390x-mcount.S | ||
setjmp.S | ||
stackguard-macros.h | ||
start.S | ||
strncpy-z900.S | ||
sub_n.S | ||
sysdep.h | ||
tst-audit.h | ||
tst-glibc-hwcaps.c | ||
Versions |