From f070422400a0cf53cf32cd3209b0a69cba53ace6 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 25 Jul 2011 10:07:58 +0000 Subject: [PATCH] fix atikms LTO build git-svn-id: svn://kolibrios.org@2017 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/video/drm/radeon/radeon_device.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/video/drm/radeon/radeon_device.c b/drivers/video/drm/radeon/radeon_device.c index d7c6da459f..55279be2ce 100644 --- a/drivers/video/drm/radeon/radeon_device.c +++ b/drivers/video/drm/radeon/radeon_device.c @@ -1042,7 +1042,12 @@ int _stdcall display_handler(ioctl_t *io) static char log[256]; static pci_dev_t device; -u32_t drvEntry(int action, char *cmdline) +u32_t +#if defined(__GNUC__) && __GNUC__ >= 4 +// has sense only if -fwhole-program is used, like Makefile.lto +__attribute__((externally_visible)) +#endif +drvEntry(int action, char *cmdline) { struct radeon_device *rdev = NULL;