Still need to port some kernel modules

This commit is contained in:
2025-08-23 00:35:29 +08:00
parent 015a64039d
commit 64dbb93260
5 changed files with 220 additions and 99 deletions

View File

@@ -279,13 +279,13 @@ void cmd_ldump2mcdump(void)
return;
}
ok = bfd_set_section_size(abfd, scn, cpsize);
ok = bfd_set_section_size(scn, cpsize);
if (!ok) {
bfd_perror("bfd_set_section_size");
return;
}
ok = bfd_set_section_flags(abfd, scn, SEC_HAS_CONTENTS);
ok = bfd_set_section_flags(scn, SEC_HAS_CONTENTS);
if (!ok) {
bfd_perror("bfd_set_setction_flags");
return;
@@ -300,13 +300,13 @@ void cmd_ldump2mcdump(void)
return;
}
ok = bfd_set_section_size(abfd, scn, cpsize);
ok = bfd_set_section_size(scn, cpsize);
if (!ok) {
bfd_perror("bfd_set_section_size");
return;
}
ok = bfd_set_section_flags(abfd, scn, SEC_HAS_CONTENTS);
ok = bfd_set_section_flags(scn, SEC_HAS_CONTENTS);
if (!ok) {
bfd_perror("bfd_set_setction_flags");
return;
@@ -321,13 +321,13 @@ void cmd_ldump2mcdump(void)
return;
}
ok = bfd_set_section_size(abfd, scn, cpsize);
ok = bfd_set_section_size(scn, cpsize);
if (!ok) {
bfd_perror("bfd_set_section_size");
return;
}
ok = bfd_set_section_flags(abfd, scn, SEC_HAS_CONTENTS);
ok = bfd_set_section_flags(scn, SEC_HAS_CONTENTS);
if (!ok) {
bfd_perror("bfd_set_setction_flags");
return;
@@ -341,13 +341,13 @@ void cmd_ldump2mcdump(void)
return;
}
ok = bfd_set_section_size(abfd, scn, mem_size);
ok = bfd_set_section_size(scn, mem_size);
if (!ok) {
bfd_perror("bfd_set_section_size");
return;
}
ok = bfd_set_section_flags(abfd, scn, SEC_ALLOC|SEC_HAS_CONTENTS);
ok = bfd_set_section_flags(scn, SEC_ALLOC|SEC_HAS_CONTENTS);
if (!ok) {
bfd_perror("bfd_set_setction_flags");
return;
@@ -366,14 +366,14 @@ void cmd_ldump2mcdump(void)
return;
}
ok = bfd_set_section_size(abfd, scn, mem_chunks->chunks[i].size);
ok = bfd_set_section_size(scn, mem_chunks->chunks[i].size);
if (!ok) {
bfd_perror("bfd_set_section_size");
return;
}
ok = bfd_set_section_flags(abfd, scn, SEC_ALLOC|SEC_HAS_CONTENTS);
ok = bfd_set_section_flags(scn, SEC_ALLOC|SEC_HAS_CONTENTS);
if (!ok) {
bfd_perror("bfd_set_setction_flags");
return;