From 77dbfd3cc44b91ea04990c65f3de70267ceb2460 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 22 Sep 2011 05:55:32 +0000 Subject: Add missing "used" attribute to ATTR_INIT_SECTION to ensure functions declared with that meta-attribute are not discarded by the linker. Add missing function and definition documentation. --- LUFA/Common/Attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA/Common/Attributes.h') diff --git a/LUFA/Common/Attributes.h b/LUFA/Common/Attributes.h index d6722a28d..7ee641361 100644 --- a/LUFA/Common/Attributes.h +++ b/LUFA/Common/Attributes.h @@ -126,7 +126,7 @@ * * \param[in] SectionIndex Initialization section number where the function should be placed. */ - #define ATTR_INIT_SECTION(SectionIndex) __attribute__ ((naked, section (".init" #SectionIndex ))) + #define ATTR_INIT_SECTION(SectionIndex) __attribute__ ((used, naked, section (".init" #SectionIndex ))) /** Marks a function as an alias for another function. * -- cgit v1.2.3