Still need to port some kernel modules
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user