[PATCH v2 0/6] Add libdl support to MicroBlaze

Alex White alex.white at oarcorp.com
Wed Aug 30 02:05:23 UTC 2023


Hi,

This patch set adds libdl support to MicroBlaze. All tests pass except for dl05
and dl06. To get dl07, dl08, and dl09 to pass, I added `-u__extendsfdf2` to the
link options.

v2:
- Remove changes to dl07, dl08, and dl09 source code
- Add link options to dl07, dl08, and dl09

Alex

Alex White (6):
  microblaze: Add libdl support
  microblaze: Align exception-related sections
  microblaze: Add dl06 to expected failures
  microblaze: Add dl05 to expected failures
  build: Allow enabled-by in ldflags for link_cc and link_cxx
  microblaze: Add link options to dl07, dl08, and dl09

 cpukit/libdl/rtl-mdreloc-microblaze.c         | 297 ++++++++++++++++++
 cpukit/libdl/rtl-tls.c                        |   2 +-
 .../microblaze/include/machine/elf_machdep.h  |  83 +++++
 .../microblaze/microblaze_fpga/linkcmds.yml   |   8 +-
 .../microblaze_fpga/tstkcu105_qemu.yml        |  10 +-
 spec/build/cpukit/cpumicroblaze.yml           |   3 +
 spec/build/cpukit/objdl.yml                   |   2 +
 spec/build/cpukit/objdlmicroblaze.yml         |  15 +
 spec/build/cpukit/optlibdl.yml                |   1 +
 spec/build/testsuites/libtests/dl07.yml       |   5 +-
 spec/build/testsuites/libtests/dl08.yml       |   5 +-
 spec/build/testsuites/libtests/dl09.yml       |   5 +-
 wscript                                       |  13 +-
 13 files changed, 437 insertions(+), 12 deletions(-)
 create mode 100644 cpukit/libdl/rtl-mdreloc-microblaze.c
 create mode 100644 cpukit/score/cpu/microblaze/include/machine/elf_machdep.h
 create mode 100644 spec/build/cpukit/objdlmicroblaze.yml

-- 
2.34.1



More information about the devel mailing list