All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] efi_loader: provide library for freestanding binaries
@ 2019-01-20  7:20 Heinrich Schuchardt
  2019-01-20  7:20 ` [U-Boot] [PATCH 1/3] efi_loader: provide freestanding library Heinrich Schuchardt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Heinrich Schuchardt @ 2019-01-20  7:20 UTC (permalink / raw)
  To: u-boot

GCC requires that freestanding programs provide memcpy(), memmove(),
memset(), and memcmp(), cf.
https://gcc.gnu.org/onlinedocs/gcc/Standards.html

Provide the required library functions.
Link them in all *.efi binaries.

Fixes: 5be444d14b38 ("efi_loader: consistent build flags for EFI applications")

Reverting said commit would not satisfy the general requirement of the GCC
compiler for freestanding programs.

Tested successfully, cf.
https://travis-ci.org/xypron2/u-boot/builds/481823209

Heinrich Schuchardt (3):
  efi_loader: provide freestanding library
  efi_loader: use freestanding library for efi apps
  efi_loader: use library memcpy() in helloworld.efi

 lib/efi_loader/efi_freestanding.c   | 90 +++++++++++++++++++++++++++++
 lib/efi_loader/helloworld.c         | 36 ++----------
 lib/efi_selftest/efi_freestanding.c |  1 +
 scripts/Makefile.lib                |  2 +-
 4 files changed, 98 insertions(+), 31 deletions(-)
 create mode 100644 lib/efi_loader/efi_freestanding.c
 create mode 120000 lib/efi_selftest/efi_freestanding.c

-- 
2.20.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-21 13:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-20  7:20 [U-Boot] [PATCH 0/3] efi_loader: provide library for freestanding binaries Heinrich Schuchardt
2019-01-20  7:20 ` [U-Boot] [PATCH 1/3] efi_loader: provide freestanding library Heinrich Schuchardt
2019-01-20  7:20 ` [U-Boot] [PATCH 2/3] efi_loader: use freestanding library for efi apps Heinrich Schuchardt
2019-01-21 13:52   ` Alexander Graf
2019-01-20  7:20 ` [U-Boot] [PATCH 3/3] efi_loader: use library memcpy() in helloworld.efi Heinrich Schuchardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.