2003-03-18 Till Straumann <strauman@slac.stanford.edu>

PR 356/bsps
	* sys/linker_set.h: This patch makes RTEMS/PowerPC eabi compliant.
	Declare all linker-script defined addresses as
	variables of unknown size and not as short objects
	like 'int', 'void*' etc.  Since only addresses are used and never those
	variable's values, the type used in a declaration is not important.
This commit is contained in:
Joel Sherrill
2003-03-18 20:43:07 +00:00
parent 7e9c793ba5
commit 49f02fff4c
2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
* sys/linker_set.h: This patch makes RTEMS/PowerPC eabi compliant.
Declare all linker-script defined addresses as
variables of unknown size and not as short objects
like 'int', 'void*' etc. Since only addresses are used and never those
variable's values, the type used in a declaration is not important.
2003-03-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove AC_CONFIG_AUX_DIR.

View File

@@ -63,13 +63,13 @@
* Initialize before referring to a give linker set
*/
#define SET_DECLARE(set, ptype) \
extern ptype *__CONCAT(__start_set_,set); \
extern ptype *__CONCAT(__stop_set_,set)
extern ptype *__CONCAT(__start_set_,set)[]; \
extern ptype *__CONCAT(__stop_set_,set)[]
#define SET_BEGIN(set) \
(&__CONCAT(__start_set_,set))
(__CONCAT(__start_set_,set))
#define SET_LIMIT(set) \
(&__CONCAT(__stop_set_,set))
(__CONCAT(__stop_set_,set))
/*
* Iterate over all the elements of a set.