mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
windows linker name matching
This commit is contained in:
parent
1856695b0b
commit
8123041d0a
1 changed files with 9 additions and 5 deletions
|
@ -1107,11 +1107,15 @@ impl<'a> AppSections<'a> {
|
|||
|
||||
for (i, section) in file.sections().enumerate() {
|
||||
let kind = match section.name() {
|
||||
Ok(".text") => SectionKind::Text,
|
||||
// Ok(".data") => SectionKind::Data,
|
||||
Ok(".rdata") => SectionKind::ReadOnlyData,
|
||||
|
||||
_ => continue,
|
||||
Ok(name) => {
|
||||
match name {
|
||||
_ if name.starts_with(".text") => SectionKind::Text,
|
||||
// _ if name.starts_with(".data") => SectionKind::Data,
|
||||
_ if name.starts_with(".rdata") => SectionKind::ReadOnlyData,
|
||||
_ => continue,
|
||||
}
|
||||
},
|
||||
Err(_) => continue,
|
||||
};
|
||||
|
||||
let mut relocations: MutMap<String, Vec<AppRelocation>> = MutMap::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue