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() {
|
for (i, section) in file.sections().enumerate() {
|
||||||
let kind = match section.name() {
|
let kind = match section.name() {
|
||||||
Ok(".text") => SectionKind::Text,
|
Ok(name) => {
|
||||||
// Ok(".data") => SectionKind::Data,
|
match name {
|
||||||
Ok(".rdata") => SectionKind::ReadOnlyData,
|
_ if name.starts_with(".text") => SectionKind::Text,
|
||||||
|
// _ if name.starts_with(".data") => SectionKind::Data,
|
||||||
_ => continue,
|
_ if name.starts_with(".rdata") => SectionKind::ReadOnlyData,
|
||||||
|
_ => continue,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Err(_) => continue,
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut relocations: MutMap<String, Vec<AppRelocation>> = MutMap::default();
|
let mut relocations: MutMap<String, Vec<AppRelocation>> = MutMap::default();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue