[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 0/2] Fix multiple definition of `main'



While compiling with LTO an application that has its own main()
function, linker produced an error "multiple definition of
main". Libukboot indeed has an extra main(), but it is a weak
declaration and should have been replaced with the strong one.

This series fixes this problem.


Yuri Volchkov (2):
  build: limit gcc version to 6.1 if LTO is enabled
  lib/ukboot: move weak main in separate sub-lib

 Makefile               |  6 ++++++
 lib/ukboot/Makefile.uk | 12 ++++++++++++
 lib/ukboot/boot.c      |  7 -------
 lib/ukboot/weak_main.c |  9 +++++++++
 4 files changed, 27 insertions(+), 7 deletions(-)
 create mode 100644 lib/ukboot/weak_main.c

-- 
2.19.2


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.