diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-18 20:42:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-18 20:42:51 +0000 |
commit | bef4fddd1d285acdece112828dda3520b06df518 (patch) | |
tree | 541d53fdae9f38b037881d04ed7d186168ced035 /cpukit/libnetworking | |
parent | 2003-03-18 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-bef4fddd1d285acdece112828dda3520b06df518.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/ChangeLog | 9 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/linker_set.h | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog index b2d02cd061..79bae776c3 100644 --- a/cpukit/libnetworking/ChangeLog +++ b/cpukit/libnetworking/ChangeLog @@ -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. diff --git a/cpukit/libnetworking/sys/linker_set.h b/cpukit/libnetworking/sys/linker_set.h index 2de93e91e0..c79fe87f0b 100644 --- a/cpukit/libnetworking/sys/linker_set.h +++ b/cpukit/libnetworking/sys/linker_set.h @@ -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. |