mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 05:46:58 +03:00
[Mach-O] wip
This commit is contained in:
parent
e2d7cd7b03
commit
45788bd8ad
@ -17,8 +17,7 @@ static void add_section(Context &ctx, OutputSection &osec,
|
|||||||
std::string_view segname, std::string_view sectname) {
|
std::string_view segname, std::string_view sectname) {
|
||||||
for (ObjectFile *obj : ctx.objs) {
|
for (ObjectFile *obj : ctx.objs) {
|
||||||
for (std::unique_ptr<InputSection> &sec : obj->sections) {
|
for (std::unique_ptr<InputSection> &sec : obj->sections) {
|
||||||
if (sec->hdr.segname == segname) {
|
if (sec->hdr.segname == segname && sec->hdr.sectname == sectname) {
|
||||||
if (sec->hdr.sectname == sectname)
|
|
||||||
for (Subsection &subsec : sec->subsections)
|
for (Subsection &subsec : sec->subsections)
|
||||||
osec.members.push_back(&subsec);
|
osec.members.push_back(&subsec);
|
||||||
sec->osec = &osec;
|
sec->osec = &osec;
|
||||||
|
Loading…
Reference in New Issue
Block a user