mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-06 14:43:29 +00:00
parent
04b60d319c
commit
0c6eff42cf
@ -1034,13 +1034,15 @@ pub fn split_obj(obj: &ObjInfo, module_name: Option<&str>) -> Result<Vec<ObjInfo
|
|||||||
}) as u64;
|
}) as u64;
|
||||||
|
|
||||||
if current_address & (align as u32 - 1) != 0 {
|
if current_address & (align as u32 - 1) != 0 {
|
||||||
log::warn!(
|
if !split.autogenerated {
|
||||||
"Alignment for {} {} expected {}, but starts at {:#010X}",
|
log::warn!(
|
||||||
split.unit,
|
"Alignment for {} {} expected {}, but starts at {:#010X}",
|
||||||
section.name,
|
split.unit,
|
||||||
align,
|
section.name,
|
||||||
current_address
|
align,
|
||||||
);
|
current_address
|
||||||
|
);
|
||||||
|
}
|
||||||
while align > 4 {
|
while align > 4 {
|
||||||
align /= 2;
|
align /= 2;
|
||||||
if current_address & (align as u32 - 1) == 0 {
|
if current_address & (align as u32 - 1) == 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user