mirror of
https://github.com/rui314/mold.git
synced 2024-11-13 09:39:13 +03:00
Recognize yet another crt{begin,end}.o variant
Looks like musl libc sometimes uses crtbeginT.o and crtendT.o.
This commit is contained in:
parent
280892f061
commit
c44fa6172b
@ -21,7 +21,8 @@ InputSection<E>::InputSection(Context<E> &ctx, ObjectFile<E> &file,
|
||||
// to the new one.
|
||||
std::string_view stem = path_filename(file.filename);
|
||||
if (stem != "crtbegin.o" && stem != "crtend.o" &&
|
||||
stem != "crtbeginS.o" && stem != "crtendS.o") {
|
||||
stem != "crtbeginS.o" && stem != "crtendS.o" &&
|
||||
stem != "crtbeginT.o" && stem != "crtendT.o") {;
|
||||
if (name == ".ctors" || name.starts_with(".ctors."))
|
||||
name = ".init_array";
|
||||
else if (name == ".dtors" || name.starts_with(".dtors."))
|
||||
|
Loading…
Reference in New Issue
Block a user