source: trunk/dports/cross/mipsel-linux-gcc34/files/800-arm-bigendian.patch @ 21475

Last change on this file since 21475 was 21475, checked in by eridius@…, 13 years ago

Massive update to svn properties on files:
All patchfiles have svn:eol-style removed.
All files that are not in fact able to be executed have svn:executable removed
All binary files have svn:eol-style removed (and are probably corrupt)
All binary files have svn:mime-type set to application/octet-stream
All files which are not patchfiles or binary files have svn:eol-style set to native
All Portfiles have svn:eol-style set to native and svn:executable removed

File size: 2.4 KB
  • gcc/config/arm/linux-elf.h

    By Lennert Buytenhek <buytenh@wantstofly.org>
    Adds support for arm*b-linux* big-endian ARM targets
    
    See http://gcc.gnu.org/PR16350
    
    diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
    old new  
    3030/* Do not assume anything about header files.  */
    3131#define NO_IMPLICIT_EXTERN_C
    3232
     33/*
     34 * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
     35 * (big endian) configurations.
     36 */
     37#if TARGET_BIG_ENDIAN_DEFAULT
     38#define TARGET_ENDIAN_DEFAULT ARM_FLAG_BIG_END
     39#define TARGET_ENDIAN_OPTION "mbig-endian"
     40#define TARGET_LINKER_EMULATION "armelfb_linux"
     41#else
     42#define TARGET_ENDIAN_DEFAULT 0
     43#define TARGET_ENDIAN_OPTION "mlittle-endian"
     44#define TARGET_LINKER_EMULATION "armelf_linux"
     45#endif
     46
    3347/* Default is to use APCS-32 mode.  */
    3448#undef  TARGET_DEFAULT
    35 #define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
     49#define TARGET_DEFAULT \
     50                ( ARM_FLAG_APCS_32 | \
     51                  ARM_FLAG_MMU_TRAPS | \
     52                  TARGET_ENDIAN_DEFAULT )
    3653
    3754#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
    3855
    39 #define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
     56#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
    4057
    4158#undef  MULTILIB_DEFAULTS
    4259#define MULTILIB_DEFAULTS \
    43         { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }
     60        { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
    4461
    4562#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
    4663
     
    101118   %{rdynamic:-export-dynamic} \
    102119   %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
    103120   -X \
    104    %{mbig-endian:-EB}" \
     121   %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
    105122   SUBTARGET_EXTRA_LINK_SPEC
    106123#endif
    107124
  • gcc/config.gcc

    diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
    old new  
    672672        ;;
    673673arm*-*-linux*)                  # ARM GNU/Linux with ELF
    674674        tm_file="dbxelf.h elfos.h linux.h arm/elf.h  arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
     675        case $target in
     676        arm*b-*)
     677                tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
     678                ;;
     679        esac
    675680        tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
    676681        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
    677682        gnu_ld=yes
Note: See TracBrowser for help on using the repository browser.