From: Michael Brown Date: Tue, 24 Jun 2025 12:26:57 +0000 (+0100) Subject: [pxe] Use a weak symbol for isapnp_read_port X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=97f40c5fcc4baa4ac9e69073db464fa62296855c;p=thirdparty%2Fipxe.git [pxe] Use a weak symbol for isapnp_read_port Use a weak symbol for isapnp_read_port used in pxe_preboot.c, rather than relying on a common symbol. Signed-off-by: Michael Brown --- diff --git a/src/arch/x86/interface/pxe/pxe_preboot.c b/src/arch/x86/interface/pxe/pxe_preboot.c index 77dcf66e7..863aaae9a 100644 --- a/src/arch/x86/interface/pxe/pxe_preboot.c +++ b/src/arch/x86/interface/pxe/pxe_preboot.c @@ -47,7 +47,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include "pxe_call.h" /* Avoid dragging in isapnp.o unnecessarily */ -uint16_t isapnp_read_port; +uint16_t isapnp_read_port __attribute__ (( weak )); /** Zero-based versions of PXENV_GET_CACHED_INFO::PacketType */ enum pxe_cached_info_indices {