summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools
Commit message (Collapse)AuthorAgeFilesLines
* microblaze: gdb: Fix crash on startupMark Hatle2024-04-012-0/+34
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* microblaze: binutils: Fix objdump/disassemblyMark Hatle2024-04-013-0/+73
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* tcf-agent: Move build fix from meta-petalinuxMark Hatle2023-06-261-0/+2
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* binutils: Disable broken alternativesMark Hatle2023-03-091-0/+2
| | | | | | | | ld.gold and dwp are not supported on Microblaze, disable gprof is not generated on Microblaze, disable this alternative Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* meta-microblaze: gcc-source: Always apply microblaze patchesMark Hatle2023-02-241-2/+2
| | | | | | | | | The microblaze patches are safe for all configurations. But due to the use of the gcc-source package being shared for native, cross, target, sdk, etc we need a single full source that covers all configurations. Otherwise we run into problems with sstate-cache re-use and a lot of duplication. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* Revert "meta-microblaze: gdb: Temporarily disable GDB"Mark Hatle2022-11-081-5/+0
| | | | | | This reverts commit 17daecd2918a7cd98f61825704cac1d9d3a046e2. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* gdb-microblaze: Update to new version of the portMark Hatle2022-11-0812-2191/+1738
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* gcc-microblaze: Update to new version of the portMark Hatle2022-11-0754-560/+556
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* binutils-microblaze: Update to new version of the portMark Hatle2022-11-0740-2769/+792
| | | | Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* binutils: update to current oe-core 2.39 versionMark Hatle2022-09-0139-694/+794
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* meta-microblaze: elfutils: Moved to OE-CoreMark Hatle2022-09-011-2/+0
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* gcc: Update patches for Langdale gccMark Hatle2022-09-0121-331/+297
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* meta-microblaze: Move to gcc-12 to match OE-CoreMark Hatle2022-09-0155-1/+1
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* meta-microblaze: elfutils: Symvers is not supported on microblazeMark Hatle2022-08-311-0/+2
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* meta-microblaze: gdb: Temporarily disable GDBMark Hatle2022-08-311-0/+5
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* binutils: Update patches for Langdale binutilsMark Hatle2022-08-3114-705/+372
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* gdb: Fix error in inline_frame_snifferMark Hatle2022-07-282-0/+62
| | | | | | | | | Depth: Total number of inline functions [refer inline-frame.c] state->skipped_frames : Number of inline functions skipped. the current unwind_pc is causing an issue when we try to step into inline functions[Depth is becoming 0]. It’s incrementing pc by 8 even with si instruction. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* meta-microbalze: gdb: Enable gdb and gdbserver on microblazeMark Hatle2022-07-2814-985/+1301
| | | | | | | Replace existing integration with new work that enables target gdb and gdbserver. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* gdb: Disable on-target GDB for microblazeMark Hatle2022-03-281-0/+7
| | | | | | | | | | | | | Failure: ../../gdb-10.2/bfd/cpu-microblaze.c:75:1: warning: missing initializer for field 'max_reloc_offset_into_insn' of 'bfd_arch_info_type' {aka 'const struct bfd_arch_info'} [-Wmissing-field-initializers] | 75 | }, | | ^ | In file included from ../../gdb-10.2/bfd/cpu-microblaze.c:23: | ./bfd.h:1998:14: note: 'max_reloc_offset_into_insn' declared here | 1998 | signed int max_reloc_offset_into_insn; | | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* microblaze binutils: Integrate community binutils contributionsMark Hatle2022-02-044-0/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Three bug fixes suggested by community member dednev@rambler.ru: *elf*-microblaze-relaxation.patch short description: The roots of invalid data offsets (pointer) after relaxation are in internal symbol table cache handling. If symbol table was cached while section processing for garbage collection, the elf_tdata (abfd)->symtab_hdr pointer is not NULL, but (Elf_Internal_Sym *) symtab_hdr->contents array contains data for local symbols only. But in the repeated relocation processing there is no check whenever the symbol index is local (ELF32_R_SYM (irelscan->r_info) < symtab_hdr->sh_info) or global. This leads to the buffer overflow (global symbol index is out of bounds) and following invalid relocation processing, especially in extra relocation data modifications (f.e. irelscan->r_addend could be decreased by arbitrary values). *elf*-microblaze-no-keep-memory.patch short description: There is incorrect newly allocated buffers handling if internal memory caching is disabled (without --no-keep-memory ld switch). This leads to possible double free(...) calls for such data and results in unexpected ld termination with abort(). I've fixed this issue by implementing similar to the elf32-avr.c data buffer handling. *elf*-imm-check-for-relaxation.patch short description: I've reverted Xilinx path to the original GNU binutils bfd code for microblaze, because this patch incorrectly leaves some "imm -1" instructions in resulting binary file after relaxation and increases executable size. If you look at the IMM instruction argument processing in binutils/gas/config/tc-microblaze.c you will see, that gas checks are similar to the original bfd microblaze_elf_relax_section(...) Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* microblaze m4/diffutils/grep: Add stack direction info to m4 macrosMark Hatle2022-01-142-0/+15
| | | | | | | | | | | | These tools require knowledge of the stack direction, since we are cross compiling they are unable to detect the stack growth direction so it must be defined in the m4 macro. It turns out the direction was already set, but defined as 'microblaze' instead of 'microblaze*' which caused problems on little endian. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* gdb: Upgrade to the honister versionMark Hatle2022-01-1467-6138/+2579
| | | | | | | | Move from pinned gdb version 9.2 to the honister version. Note: gdb/gdbserver for the target is known to not work yet. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* gcc: Upgrade to honister (11.2) versionMark Hatle2022-01-1457-710/+465
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutils: Upgraade to honister versionMark Hatle2022-01-1459-5446/+3912
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* gcc: Move everything to gcc-11 directoryMark Hatle2022-01-142-1/+1
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revert "binutils: Import gatesgarth version, converted to new variable syntax"Mark Hatle2022-01-1429-25355/+0
| | | | | | This reverts commit 294443d89dd53435fc0ccc6113c7ec5aff326612. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revert "binutils: convert away from bbappend"Mark Hatle2022-01-145-4/+15
| | | | | | This reverts commit 7f12056ccc3a978e9b69c380bffc3c04ee20520e. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revert "gcc: Import gatesgarth version, converted to new variable syntax"Mark Hatle2022-01-1469-7082/+0
| | | | | | This reverts commit 2c819946b5258291d1725dabb3f5180d36971bd6. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revert "gcc: convert away from bbappend"Mark Hatle2022-01-1459-2/+3
| | | | | | This reverts commit b56b1562c129fd12b486fd6666315afd4644ce6a. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Convert to new override syntaxSai Hari Chandana Kalluri2021-11-022-3/+3
| | | | | | | | | | This is the result of automated script (0.9.0) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use : as the override character instead of _. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* gcc: convert away from bbappendMark Hatle2021-10-2559-3/+2
| | | | | | Intergrade the microblaze items with the backported toolchain. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* gcc: Import gatesgarth version, converted to new variable syntaxMark Hatle2021-10-2569-0/+7082
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutils: convert away from bbappendMark Hatle2021-10-255-15/+4
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutils: Import gatesgarth version, converted to new variable syntaxMark Hatle2021-10-2529-0/+25355
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Convert to new override syntaxSai Hari Chandana Kalluri2021-09-2814-32/+32
| | | | | | | | | | This is the result of automated script (0.9.0) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* meta-microblaze: Fix GCC issue where additional loops were addedMark Hatle2021-09-282-0/+58
| | | | | | | | Due to latest changes in GCC-10.2 MB64 perforamance has reduced We have added zero_extended instructions to get rid of left shift and right shift loops Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Revert "gcc: Fix performance degradation on Microblaze 64"Mark Hatle2021-09-282-52/+0
| | | | | | This reverts commit 1bb08d385a4dbd1a3bf07a3917ea32f4be91ffac. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* gcc: Fix performance degradation on Microblaze 64Mark Hatle2021-09-282-0/+52
| | | | | | | | | | | | Issue: TSR-974519 Added zero_extendqidi2 and zero_extendhidi2 patterns in GCC 10.2,commit 0a237a9: Do not propagate results from inner REGS to paradoxical SUBREGs and this commit is causing the MB 64 compiler to generate extra instructions. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* meta-microblaze: Upgrade gcc-source 10 -> 11Sai Hari Chandana Kalluri2021-07-1557-0/+0
| | | | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* gcc: Fix break_hander attribute handlingMark Hatle2021-07-142-0/+72
| | | | | | Issue: CR-1081780 Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutis-gdb: Fix size of long, should be 64-bitMark Hatle2021-07-142-0/+28
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutils/gdb: Disable hunk from microblaze patchMark Hatle2021-07-142-2/+2
| | | | | | | | | | The disabled chunk triggers a compilation failure when trying to build newlib for microblaze64. ld: MicroBlaze architecture of input file `/tmp/ccHA6bsQ.o' is incompatible with MicroBlaze output ld: warning: cannot find entry symbol _start; defaulting to 0000000000000050 Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutils/gdb: Fix various microblaze 64 issuesMark Hatle2021-07-146-13/+412
| | | | | | | Issue: CR-1089197 Issue: CR-1093443 Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutils: Workaround for Microblaze 64 linking failureMark Hatle2021-07-141-9/+0
| | | | | | | | The typecast is causing linking to not work properly, however it does cause a compilation warning to return that a typecast is likely needed. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* meta-microblaze gcc-source: Fix barrel shift for versions under v10.0Mark Hatle2021-07-142-0/+50
| | | | | | | Issue reported by Daniel Mack via the meta-xilinx mailing list. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* meta-microblaze gdb: Backport gdb 9.2 from master YP, and lock down versionMark Hatle2021-02-0319-0/+1503
| | | | | | We're not ready to move to a newer version of gdb at this time, so lock down on version 9.2. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* gdb: Fix on-target GDB compilationMark Hatle2020-12-074-0/+578
| | | | | | | | Target gdb/gdbserver failed to compile due to out of date microblaze-linux-nat.c, correct this and ancillary files. Note, this only corrects compilation the code may not function properly. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* gcc: update to early gatesgarth versionMark Hatle2020-12-0462-1051/+641
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* gdb: update to early gatesgarth versionMark Hatle2020-12-0448-1568/+2505
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* binutils: update to early gatesgarth versionMark Hatle2020-12-0459-1876/+2805
| | | | Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>