Skip to content

Module and ARM Module updates and fixes

David Dgien barebox 2 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyApplied
  2. v1 RFC8 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Added #ifndef MODULE guards to init.h, and removed #undefine directives from module.h
- Created a weak function for module_frob_arch_sections default implementation

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8Makefile: Initialize and export KBUILD variablesMakefile+10 -20 replies
2/8module: Add init macros to module.hinclude/init.h include/module.h+88 -90 replies
3/8module: Fix adding module to list after layoutcommon/module.c+2 -90 replies
4/8module: Fix module command registrationcommon/module.c+29 -140 replies
5/8module: Implement HAVE_MOD_ARCH_SPECIFICcommon/Kconfig common/module.c include/asm-generic/module.h +1 more+77 -00 replies
6/8arm: makefile: Fix compiler flag variablearch/arm/Makefile+1 -10 replies
7/8arm: elf: Add THM relocation typesarch/arm/include/asm/elf.h+3 -00 replies
8/8arm: module: Allow modules outside of bl rangearch/arm/Kconfig arch/arm/Makefile arch/arm/cpu/Kconfig +5 more+295 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] Module and ARM Module updates and fixes

This series fixes various bugs and bit-rot issues with the module loading code. It also ports a couple of modules features from the Linux
kernel: arch specific section fixups, and module PLTs for ARM modules, to contain veneers for 'bl' instructions.

Changes since v1:
- Added #ifndef MODULE guards to init.h, and removed #undefine directives from module.h
- Created a weak function for module_frob_arch_sections default implementation

David Dgien (8):
Makefile: Initialize and export KBUILD variables
module: Add init macros to module.h
module: Fix adding module to list after layout
module: Fix module command registration
module: Implement HAVE_MOD_ARCH_SPECIFIC
arm: makefile: Fix compiler flag variable
arm: elf: Add THM relocation types
arm: module: Allow modules outside of bl range

 Makefile                      |  12 +-
 arch/arm/Kconfig              |  15 +++
 arch/arm/Makefile             |   6 +-
 arch/arm/cpu/Kconfig          |   1 +
 arch/arm/include/asm/elf.h    |   3 +
 arch/arm/include/asm/module.h |  33 ++++-
 arch/arm/lib32/Makefile       |   1 +
 arch/arm/lib32/module-plts.c  | 229 ++++++++++++++++++++++++++++++++++
 arch/arm/lib32/module.c       |  14 +++
 arch/arm/lib32/module.lds     |   4 +
 common/Kconfig                |   7 ++
 common/module.c               |  68 ++++++----
 include/asm-generic/module.h  |  49 ++++++++
 include/init.h                |  26 ++--
 include/module.h              |  78 ++++++++++++
 15 files changed, 505 insertions(+), 41 deletions(-)
 create mode 100644 arch/arm/lib32/module-plts.c
 create mode 100644 arch/arm/lib32/module.lds
 create mode 100644 include/asm-generic/module.h
Signature · 7 lines
2.27.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox