Skip to content

Commit 577f15b

Browse files
Preserve input ELF flags
This is required for MIPS to work correctly, but not yet for Cortex-M targets.
1 parent 1762486 commit 577f15b

8 files changed

+2
-0
lines changed

bin/thumbv6m-none-eabi.a

0 Bytes
Binary file not shown.

bin/thumbv7em-none-eabi.a

0 Bytes
Binary file not shown.

bin/thumbv7em-none-eabihf.a

0 Bytes
Binary file not shown.

bin/thumbv7m-none-eabi.a

0 Bytes
Binary file not shown.

bin/thumbv8m.base-none-eabi.a

0 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabi.a

0 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabihf.a

0 Bytes
Binary file not shown.

xtask/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ fn trim_panic_handler(obj_file: &str) {
4141
let obj = object::File::parse(&objdata).unwrap();
4242

4343
let mut writer = Object::new(obj.format(), obj.architecture(), obj.endianness());
44+
writer.flags = obj.flags(); // Preserve flags of input file
45+
4446
for (sec_index, section) in obj.sections().enumerate() {
4547
assert_eq!(section.index().0, sec_index);
4648

0 commit comments

Comments
 (0)