Skip to content

zig objcopy produces incorrect Extended Linear Address in hex files #14258

@ekoeppen

Description

@ekoeppen

Zig Version

0.11.0-dev.1183+2b9478ce1

Steps to Reproduce and Observed Behavior

Compiling the STM32F4 blinky example here: https://github.com/ZigEmbeddedGroup/microzig-examples/tree/blinky-stm32, the ELF file has a text segment at 0x08000000, but the hex file creates the record :020000042D00F2, which has 0x2d00 as the extended load address. Additionally, the checksum for that record is incorrect.

Expected Behavior

The record should be :020000040800F2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions