Skip to content

microblaze: apply binutils patches from meta-Xilinx repository #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: zephyr-binutils-2_43_1
Choose a base branch
from

Conversation

alpsayin
Copy link

@alpsayin alpsayin commented Jul 26, 2025

Re-do of the exercise in #10 but using the newer patchset which apparently is based on 2.42

This patchset fixes many known issues on gnu-toolchain for microblaze.
But mainly the incorrect (linker) relocation issues that emits invalid/incorrect code during optimizations.

Patches obtained from https://github.com/xilinx/meta-xilinx/ repository,
from meta-microblaze/recipes-devtools/binutils path.

This time around, I've intentionally skipped Microblaze64 patches for 2 reasons:

  1. I don't intend to provide support nor maintain MB64.
  2. It's clearly an unstable hot mess. Even the patchset reflects that. Half of the patches are reverted in later patches.

nagaraju and others added 2 commits July 26, 2025 13:43
Added support in gas for mlittle-endian and mbig-endian flags
as options.

Updated show usage for MicroBlaze specific assembler options
to include new entries.

Signed-off-by:nagaraju <nmekala@xilix.com>
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Signed-off-by: Aayush Misra <aayushm@amd.com>

Patchfile taken from:
https://github.com/Xilinx/meta-xilinx/blob/1d98f8981e3157aa265ca141a0fc9e6e2640394f/meta-microblaze/recipes-devtools/binutils/binutils/0012-Add-mlittle-endian-and-mbig-endian-flags.patch
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

Conflicts: bfd/elf-eh-frame.c
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>

Patchfile taken from:
https://github.com/Xilinx/meta-xilinx/blob/1d98f8981e3157aa265ca141a0fc9e6e2640394f/meta-microblaze/recipes-devtools/binutils/binutils/0013-Disable-the-warning-message-for-eh_frame_hdr.patch
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
MBODAPAT added 3 commits July 26, 2025 15:25
…ng 0u

Signed-off-by: Aayush Misra <aayushm@amd.com>

Patchfile taken from:
https: //github.com/Xilinx/meta-xilinx/blob/1d98f8981e3157aa265ca141a0fc9e6e2640394f/meta-microblaze/recipes-devtools/binutils/binutils/0017-fixed-bug-in-GCC-so-that-It-will-support-.long-0U-an.patch
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
…gp-opt flag..

Signed-off-by: Aayush Misra <aayushm@amd.com>

Patchfile taken from:
https: //github.com/Xilinx/meta-xilinx/blob/1d98f8981e3157aa265ca141a0fc9e6e2640394f/meta-microblaze/recipes-devtools/binutils/binutils/0018-Compiler-will-give-error-messages-in-more-detail-for.patch
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
…om the community member (dednev@rambler.ru) for 2021.1. [CR-1115233]

Conflicts:
	bfd/elf32-microblaze.c
	bfd/elf64-microblaze.c

Signed-off-by: Aayush Misra <aayushm@amd.com>

Patchfile taken from:
https: //github.com/Xilinx/meta-xilinx/blob/master/meta-microblaze/recipes-devtools/binutils/binutils/0037-Double-free-with-ld-no-keep-memory.-Proposed-patches.patch
Signed-off-by: Alp Sayin <alpsayin@gmail.com>
@alpsayin alpsayin force-pushed the zephyr-binutils-2_43_1-microblaze-recipes-25072025 branch from 3a5ea32 to d1e9f4d Compare July 26, 2025 14:26
Its size still uses the outdated 2=long notation and based on
R_MICROBLAZE_NONE reloc, it shouldn't be PC_RELATIVE.

Signed-off-by: Alp Sayin <alpsayin@gmail.com>
@alpsayin alpsayin force-pushed the zephyr-binutils-2_43_1-microblaze-recipes-25072025 branch from 5d3adee to 575f89a Compare July 30, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants