This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fix PR 21275, PR21597 cygwin/mingw32 bootstrap regressions on trunk


On Thu, Aug 04, 2005 at 12:19:58PM +1200, Danny Smith wrote:
> In C, we get:  error: initializer element is not constant

Clearly that's what we get now.  I'm asking if that's Right
and Proper with respect to what the format can support.

> extern int* __imp__i;
> #define  i  *__imp__i
> static int *p = &i;
> 
> __imp__i gets fixed  up to the real &i when the dll is loaded

And *only* __imp__i?  In other words, the dll can't support
arbitrary relocations throughout the data section?

If so, then I guess staticp is correct as-is.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]