From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4420 invoked by alias); 30 Jul 2008 19:18:49 -0000 Received: (qmail 4399 invoked by uid 22791); 30 Jul 2008 19:18:48 -0000 X-Spam-Check-By: sourceware.org Received: from web50801.mail.re2.yahoo.com (HELO web50801.mail.re2.yahoo.com) (206.190.38.110) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 30 Jul 2008 19:18:28 +0000 Received: (qmail 65063 invoked by uid 60001); 30 Jul 2008 19:18:26 -0000 Received: from [74.201.32.2] by web50801.mail.re2.yahoo.com via HTTP; Wed, 30 Jul 2008 12:18:25 PDT X-Mailer: YahooMailRC/1042.48 YahooMailWebService/0.7.218 Date: Thu, 31 Jul 2008 04:37:00 -0000 From: "xenoneus ." Subject: armeb target cross compiler endianness question To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <631342.65042.qm@web50801.mail.re2.yahoo.com> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00320.txt.bz2 Hi, I am trying to build a cross compiler for the "armeb-softfloat-linux-uclibceabi" target using gcc-4.2.4 for an embedded linux system based on arm 1176 processor core. I have a suspicion that the compiler defaults to little endian output. Is there a way to check the default endianness setting used by the compiler? I understand that I could pass "-mbig-endian" flag but this is not an option for me. I have grepped through the code and googled and I saw references in very old mails about modifying CC1_SPEC in arm.h to "-mbig-endian" but I am afraid if this information is current. I also see endian flag used an ASM_SPEC in elf.h. What's the correct way to provide the correct default endian value? Thanks, Mohan