From a9b7a0cb27e41556ecbbe2738ae0e727c6008e8b Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sun, 30 Jun 2024 03:41:28 -0700 Subject: [PATCH] ELF2: use "gcc -E" instead of /lib/cpp modified: Makefile --- src/stub/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stub/Makefile b/src/stub/Makefile index 2d80488e..f134f6a3 100644 --- a/src/stub/Makefile +++ b/src/stub/Makefile @@ -1712,7 +1712,7 @@ powerpc64le-linux.elf-fold.h : $(srcdir)/src/$$T.lds \ tmp/powerpc64le-linux.elf-main2.s \ src/powerpc64le-expand.S (cd tmp; ln -sf ../src/arch arch) -# /lib/cpp: process the #define and #include in *.S hand-written assunbler. +# gcc -E: process the #define and #include in *.S hand-written assunbler. # sed: Remove 64-bit calling conventions from already-compiled *.s # by deleting .toc, and keeping just the label from: # .section ".opd","aw" @@ -1720,7 +1720,7 @@ powerpc64le-linux.elf-fold.h : $(srcdir)/src/$$T.lds \ #auxv_up: # .quad .L7L.auxv_up,.TOC.@tocbase # .previous - /lib/cpp -DBIG_ENDIAN=0 \ + $(call tc,gcc) -E -DBIG_ENDIAN=0 \ tmp/powerpc64le-linux.elf-fold-2.S \ | > tmp/powerpc64le-linux.elf-fold-3.S \ sed -e '/\.section\s*"\.toc","aw"/d' \ @@ -1768,7 +1768,7 @@ powerpc64-linux.elf-fold.h : $(srcdir)/src/$$T.lds \ tmp/powerpc64-linux.elf-main2.s \ src/powerpc64-expand.S (cd tmp; ln -sf ../src/arch arch) -# /lib/cpp: process the #define and #include in *.S hand-written assunbler. +# gcc E: process the #define and #include in *.S hand-written assunbler. # sed: Remove 64-bit calling conventions from already-compiled *.s # by deleting .toc, and keeping just the label from: # .section ".opd","aw" @@ -1776,7 +1776,7 @@ powerpc64-linux.elf-fold.h : $(srcdir)/src/$$T.lds \ #auxv_up: # .quad .L7L.auxv_up,.TOC.@tocbase # .previous - /lib/cpp -DBIG_ENDIAN=1 -DUSE_TOC=1 \ + $(call tc,gcc) -E -DBIG_ENDIAN=1 -DUSE_TOC=1 \ tmp/powerpc64-linux.elf-fold-2.S \ | > tmp/powerpc64-linux.elf-fold-3.S \ sed -e '/\.section\s*"\.toc","aw"/d' \