File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ fn section_kind(section: &object::Section) -> SectionKind {
170
170
. and_then ( |name| match name {
171
171
".init" | ".text" | ".vmtext" | ".dbgtext" => Some ( SectionKind :: Text ) ,
172
172
".ctors" | ".dtors" | ".data" | ".rodata" | ".sdata" | ".sdata2" | "extab"
173
- | "extabindex" => Some ( SectionKind :: Data ) ,
173
+ | "extabindex" | ".BINARY" => Some ( SectionKind :: Data ) ,
174
174
".bss" | ".sbss" | ".sbss2" => Some ( SectionKind :: UninitializedData ) ,
175
175
_ => None ,
176
176
} )
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ impl ObjSection {
212
212
fn section_kind_for_section ( section_name : & str ) -> Result < ObjSectionKind > {
213
213
Ok ( match section_name {
214
214
".init" | ".text" | ".dbgtext" | ".vmtext" => ObjSectionKind :: Code ,
215
- ".ctors" | ".dtors" | ".rodata" | ".sdata2" | "extab" | "extabindex" => {
215
+ ".ctors" | ".dtors" | ".rodata" | ".sdata2" | "extab" | "extabindex" | ".BINARY" => {
216
216
ObjSectionKind :: ReadOnlyData
217
217
}
218
218
".bss" | ".sbss" | ".sbss2" => ObjSectionKind :: Bss ,
Original file line number Diff line number Diff line change @@ -859,7 +859,8 @@ where
859
859
write ! ( w, ".section {}" , section. name) ?;
860
860
write ! ( w, ", \" a\" , @nobits" ) ?;
861
861
}
862
- ".ctors" | ".dtors" | ".ctors$10" | ".dtors$10" | ".dtors$15" | "extab" | "extabindex" => {
862
+ ".ctors" | ".dtors" | ".ctors$10" | ".dtors$10" | ".dtors$15" | "extab" | "extabindex"
863
+ | ".BINARY" => {
863
864
write ! ( w, ".section {}" , section. name) ?;
864
865
write ! ( w, ", \" a\" " ) ?;
865
866
}
You can’t perform that action at this time.
0 commit comments