From 267995f0c2aea8030c6126f62dc41ff63d80caa7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Oct 2016 21:15:47 +0100 Subject: Mark library stubs as weak So that static linking of e.g. console.static can work. * libdiskfs/io-stubs.c (diskfs_S_io_readsleep, diskfs_S_io_eofnotify, diskfs_S_io_postnotify, diskfs_S_io_readnotify): Mark weak. * libnetfs/fsstubs.c (netfs_S_file_notice_changes, netfs_S_file_getfh, netfs_S_ifsock_getsockaddr): Likewise. * libnetfs/fsysstubs.c (netfs_S_fsys_getfile: netfs_S_fsys_getpriv, netfs_S_fsys_init, netfs_S_fsys_forward, netfs_S_fsys_startup): Likewise. * libpager/stubs.c (_pager_S_memory_object_copy, _pager_S_memory_object_data_write, _pager_S_memory_object_supply_completed): Likewise. * libtrivfs/fsys-stubs.c (trivfs_S_fsys_startup, trivfs_S_fsys_getpriv, trivfs_S_fsys_init, trivfs_S_fsys_getfile): Likewise. * libtrivfs/io-stubs.c (trivfs_S_io_map_cntl, trivfs_S_io_get_conch, trivfs_S_io_release_conch, trivfs_S_io_eofnotify, trivfs_S_io_prenotify, trivfs_S_io_postnotify, trivfs_S_io_readsleep, trivfs_S_io_sigio, trivfs_S_io_readnotify): Likewise. --- libpager/stubs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpager') diff --git a/libpager/stubs.c b/libpager/stubs.c index 9a766ec4..964985bd 100644 --- a/libpager/stubs.c +++ b/libpager/stubs.c @@ -20,7 +20,7 @@ #include "memory_object_S.h" #include -kern_return_t +kern_return_t __attribute__((weak)) _pager_S_memory_object_copy (struct pager *p, memory_object_control_t obj_ctl, vm_offset_t off, @@ -31,7 +31,7 @@ _pager_S_memory_object_copy (struct pager *p, return EOPNOTSUPP; } -kern_return_t +kern_return_t __attribute__((weak)) _pager_S_memory_object_data_write (struct pager *p, mach_port_t ctl, vm_offset_t off, @@ -42,7 +42,7 @@ _pager_S_memory_object_data_write (struct pager *p, return EOPNOTSUPP; } -kern_return_t +kern_return_t __attribute__((weak)) _pager_S_memory_object_supply_completed (struct pager *p, mach_port_t ctl, vm_offset_t off, -- cgit v1.2.3