Binutils 2.26 released
Tristan Gingold
gingold@adacore.com
Mon Feb 1 14:31:00 GMT 2016
> On 01 Feb 2016, at 15:07, Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> wrote:
>
> I am willing to submit a patch,
> the problem is that I am not sure I understand the error...
>
> There are many other AT_XXX macros in
> /usr/include/sys/auxv.h
>
> Thus I suppose that gcc does not generate an error
> if the old macro and the new are the same,
> otherwise I would have gotten an error on the first AT_NULL macro.
>
> Thus it is only because in auxv.h there is:
> #define AT_SUN_CAP_HW1 2009
> followed by
> #define AT_SUN_HWCAP AT_SUN_CAP_HW1 /* deprecated; for backward compat */
> whereas in include/elf/common.h
> #define AT_SUN_HWCAP 2009 /* Machine dependent hints about
> processor capabilities. */
>
> So should I restrict the change to AT_SU_HWCAP only,
> or rather discard the whole AT_XXX macros?
I would simply restrict the change to AT_SUN_HWCAP. Add a comment
to explain the reason (Solaris headers define the macro differently
but with the same value).
More information about the Binutils
mailing list