Detailed description
Meson is currently set up to build hexdumps of entire ELF files instead of just the relevant part of the binary (which is the .text section in all cases).
This adds an intermediate objcopy to extract the section in binary format and directs that to the hexdump step to produce the correct output.
Your checklist for this pull request
Closing issues
None.
## Detailed description
Meson is currently set up to build hexdumps of entire ELF files instead of just the relevant part of the binary (which is the `.text` section in all cases).
This adds an intermediate `objcopy` to extract the section in binary format and directs that to the `hexdump` step to produce the correct output.
<!--
Explain the **details** for making this change.
* Is a new feature implemented?
* What existing problem(s) does the pull request solve?
* How does the pull request solve these problems?
Please provide enough information so that others can review your pull request.
Information embedded in the description part of the commits doesn't count.
-->
## Your checklist for this pull request
* [x] I've read the [Code of Conduct](https://github.com/blackmagic-debug/blackmagic/blob/main/CODE_OF_CONDUCT.md)
* [x] I've read the [guidelines for contributing](https://github.com/blackmagic-debug/blackmagic/blob/main/CONTRIBUTING.md) to this repository
* [x] It builds for hardware native (see [Building the firmware](https://github.com/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-firmware))
* [x] It builds as BMDA (see [Building the BMDA](https://github.com/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-app))
* [x] I've tested it to the best of my ability
* [x] My commit messages provide a useful short description of what the commits do
## Closing issues
None.
<!-- put "fixes #XXXX" here to auto-close the issue(s) that your PR fixes (if any). -->