Re: [PATCH] x86: linker script syntax nits

From: Roland McGrath
Date: Thu Oct 15 2009 - 14:29:36 EST


> The other -- and somewhat less cantankerous way -- is to use a dummy symbol:
>
> #define LINUX_ASSERT(expr, name, string) name = ASSERT(expr, string)
>
> "name" would have to be unique for each instance.

I wouldn't like to pollute the symtabs with those useless symbols.

#define LINUX_ASSERT(expr, string) PROVIDE(_assert_bogon = ASSERT(expr, string))

works with a recent ld. I don't know what the problematic old ld versions
were. Do you have such on hand to test?

Ian may have another suggestion.


Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/