]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[pxe] Use a weak symbol for isapnp_read_port
authorMichael Brown <mcb30@ipxe.org>
Tue, 24 Jun 2025 12:26:57 +0000 (13:26 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 24 Jun 2025 12:34:41 +0000 (13:34 +0100)
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 <mcb30@ipxe.org>
src/arch/x86/interface/pxe/pxe_preboot.c

index 77dcf66e75be70449ba9bef48aa4ff28a8be31d0..863aaae9ace4ca0b0c428e877d72df2ab4aa15d2 100644 (file)
@@ -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 {