aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/adv.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-05-25 08:45:37 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-05-25 08:45:37 +0100
commit487b67a9ce9f6b338a28d4ab71a7ee313ba35762 (patch)
tree1083f8c0ba857260b18b5fccbe7a48f910bc18f2 /com32/elflink/ldlinux/adv.c
parent565952b9d86d769471d500caab5ebba9bc36c363 (diff)
downloadsyslinux-487b67a9ce9f6b338a28d4ab71a7ee313ba35762.tar.gz
syslinux-487b67a9ce9f6b338a28d4ab71a7ee313ba35762.tar.xz
syslinux-487b67a9ce9f6b338a28d4ab71a7ee313ba35762.zip
ldlinux: Remove __constructor attribute
The __constructor tag only makes sense in the core as the constructor functions are executed from load_env32(), before any modules have been loaded. Therefore, applying __constructor to code inside ldlinux is pointless as unless the functions are called explicitly, they will never be executed. Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/adv.c')
-rw-r--r--com32/elflink/ldlinux/adv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/adv.c b/com32/elflink/ldlinux/adv.c
index b81361f2..78695471 100644
--- a/com32/elflink/ldlinux/adv.c
+++ b/com32/elflink/ldlinux/adv.c
@@ -40,7 +40,7 @@ void *__syslinux_adv_ptr;
size_t __syslinux_adv_size;
extern void adv_init(void);
-void __constructor __syslinux_init(void)
+void __syslinux_init(void)
{
static com32sys_t reg;