diff mbox series

[320/320] ipl: Ensure no GCC builtins replace string functions

Message ID 20200520101945.9676-1-jer@gentoo.org (mailing list archive)
State Not Applicable
Headers show
Series None | expand

Commit Message

Jeroen Roovers May 20, 2020, 10:19 a.m. UTC
With GCC 10, the ipl is built with the compiler overriding local
definitions of some string functions, causing the ipl to trigger an
HPMC. Fix this by setting the -fno-builtin compiler flag.

Signed-off-by: Jeroen Roovers <jer@gentoo.org>
---
 ipl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jeroen Roovers May 20, 2020, 1:57 p.m. UTC | #1
On Wed, 20 May 2020 12:19:45 +0200
Jeroen Roovers <jer@gentoo.org> wrote:

> With GCC 10, [...]

Please ignore this one.


Cheers,
     jer
diff mbox series

Patch

diff --git a/ipl/Makefile b/ipl/Makefile
index 913ec66..c1d608b 100644
--- a/ipl/Makefile
+++ b/ipl/Makefile
@@ -39,7 +39,7 @@  endif
 VPATH=../lib:.
 
 AFLAGS	= -I../lib
-CFLAGS	= -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks
+CFLAGS	= -DIPL_LOADER -I. -I../lib -I../include -O2 -mdisable-fpregs -Wall -fno-delete-null-pointer-checks -fno-builtin
 LDFLAGS  = -N --section-start .init=0x60000 -e '$$START$$'
 
 all:	iplelf