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: ARM fix for big endian linux-elf targets


> +/* The value of LINUX_TARGET_INTERPRETER is inherited from linux-elf.h
> +   that is included before this file.  */

This comment is inaccurate for eabi targets.

> +/* Redefine LINK_SPEC with armelfb_linux.  */
> +#undef SUBTARGET_EXTRA_LINK_SPEC
> +#define SUBTARGET_EXTRA_LINK_SPEC " -m armelfb_linux -p"

Why is the big-endian flag unconditional here...

> +#undef LINUX_TARGET_LINK_SPEC
> +#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
> +   %{b} \
> +   %{static:-Bstatic} \
> +   %{shared:-shared} \
> +   %{symbolic:-Bsymbolic} \
> +   %{rdynamic:-export-dynamic} \
> +   %{!dynamic-linker:-dynamic-linker " LINUX_TARGET_INTERPRETER "} \
> +   -X \
> +   %{mbig-endian:-EB}" \

But conditional here?

Also, I don't see any differences between this definition and the one in 
linux-elf.h

Paul


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