From 44f8d229e86317db4a4eec519fa1a6ce69c5bcd2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 2 Aug 2023 07:54:47 +0930 Subject: [PATCH] Don't declare xmalloc and others in ldmisc.h * ldmisc.h (xmalloc, xrealloc, xexit, yyerror): Don't declare. * emultempl/pdp11.em: Include libiberty.h. * emultempl/ticoff.em: Likewise. * emultempl/vms.em: Likewise. * ldctor.c: Likewise. * ldelfgen.c: Likewise. * ldgram.y: Likewise. (yyerror): Prototype and make static. --- ld/emultempl/pdp11.em | 1 + ld/emultempl/ticoff.em | 1 + ld/emultempl/vms.em | 1 + ld/ldctor.c | 1 + ld/ldelfgen.c | 1 + ld/ldgram.y | 8 +++++--- ld/ldmisc.h | 4 ---- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ld/emultempl/pdp11.em b/ld/emultempl/pdp11.em index 8ff260a4c13..c6dbdeedd6a 100644 --- a/ld/emultempl/pdp11.em +++ b/ld/emultempl/pdp11.em @@ -21,6 +21,7 @@ fragment <