On PowerPC with EABI and the usage of the small data area we have a problem with the linker set start and stop declaration (sys/linker_set.h). Currently GCC assumes that these objects reside in the small data area, which actually is not the case. You can avoid this if you change the declaration to an array type. Fix: #define SET_BEGIN(set) \ (&__CONCAT(__start_set_,set))--vHccJU8OXTJnxbAT2U288aHwScwd3A5JT0Fyf0Q0QfgtagUT Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" Index: sys/linker_set.h =================================================================== --- sys/linker_set.h (revision 198848) +++ sys/linker_set.h (working copy) @@ -67,8 +67,8 @@ * Initialize before referring to a given 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) []
Responsible Changed From-To: freebsd-bugs->freebsd-ppc Over to maintainer(s).
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>