3ae52624ff
Update the files which contain no license information with the 'Apache-2.0' SPDX license identifier. Many source files in the tree are missing licensing information, which makes it harder for compliance tools to determine the correct license. By default all files without license information are under the default license of Zephyr, which is Apache version 2. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
14 lines
370 B
Python
Executable file
14 lines
370 B
Python
Executable file
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
import sys
|
|
|
|
# For some baffling reason IAMCU sets the instruction set architecture
|
|
# in the ELF header to 0x06 instead of 0x03 even though it is just
|
|
# 386 code. This gives QEMU fits. Hack it!
|
|
fd = open(sys.argv[1], "r+b")
|
|
fd.seek(0x12)
|
|
# Write 0x03 which is EM_386 to e_machine
|
|
fd.write(b'\x03')
|
|
fd.close()
|