From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22953 invoked by alias); 7 Feb 2011 15:22:16 -0000 Received: (qmail 22933 invoked by uid 22791); 7 Feb 2011 15:22:15 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Feb 2011 15:22:11 +0000 Received: by mail-iy0-f175.google.com with SMTP id 8so2385313iyj.20 for ; Mon, 07 Feb 2011 07:22:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.172.75 with SMTP id k11mr14151078ibz.133.1297092130676; Mon, 07 Feb 2011 07:22:10 -0800 (PST) Received: by 10.231.176.5 with HTTP; Mon, 7 Feb 2011 07:22:10 -0800 (PST) In-Reply-To: <4D4C39E5.6030403@caviumnetworks.com> References: <4D3DCB5A.6060107@caviumnetworks.com> <20110131130820.GB26217@linux-mips.org> <4D4C39E5.6030403@caviumnetworks.com> Date: Mon, 07 Feb 2011 16:11:00 -0000 Message-ID: Subject: Re: page size change on MIPS From: naveen yadav To: David Daney Cc: keshav yadav , Ian Lance Taylor , mips-gnu-discuss@codesourcery.com, gcc-help@gcc.gnu.org, Mulyadi Santosa , libc-help@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2011-02/txt/msg00141.txt.bz2 Thanks a lot for your input. This is o/p for my busybox.I am booting with INITRAMFS. and kernel version is 2.6.30.9. I also try latest codesourcery mips toolchain and result is same. I could not get any hint to debug this issue. #mips-linux-gnu-readelf -l busybox Elf file type is EXEC (Executable file) Entry point 0x400180 There are 5 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align REGINFO 0x0000f4 0x004000f4 0x004000f4 0x00018 0x00018 R 0x4 LOAD 0x000000 0x00400000 0x00400000 0x1a8c6f 0x1a8c6f R E 0x100= 00 LOAD 0x1a9000 0x005b9000 0x005b9000 0x03170 0x084ac RW 0x10000 NOTE 0x0000d4 0x004000d4 0x004000d4 0x00020 0x00020 R 0x4 TLS 0x1ab464 0x005bb464 0x005bb464 0x00018 0x0004c R 0x4 Section to Segment mapping: Segment Sections... 00 .reginfo 01 .note.ABI-tag .reginfo .rel.dyn .init .text __libc_freeres_fn __libc_thread_freeres_fn .fini .rodata __libc_subfreeres __libc_atexit __libc_thread_subfreeres .gcc_except_table 02 .eh_frame .tdata .ctors .dtors .jcr .data.rel.ro .data .got .sdata .sbss .bss __libc_freeres_ptrs 03 .note.ABI-tag 04 .tdata .tbss On Fri, Feb 4, 2011 at 11:09 PM, David Daney wr= ote: > On 02/04/2011 08:26 AM, Ian Lance Taylor wrote: >> >> keshav yadav =A0writes: >> >>> I observe one different behavior when we have page size set to 4KB or >>> 16KB in kernel busybox receive argc[0] argument correct, but >>> when page size set to 64KB I am getting argv[0] as empty. So what may >>> be issue. I am using codesourcercy toolchain. >> >> I have no idea what the problem but I know that it is extremely unlikely >> to have anything to do with gcc. >> > > I agree. > > We routinely run programs compiled with a wide variety of stock GCC > versions, under all three MIPS/Linux ABIs (o32, n32, n64) on kernels with > 4K, 8K, 16K, 32K and 64K page sizes with no problems. > > If you suspect a defect in your toolchain, you could try building a 'stoc= k' > toolchain with recent Binutils and GCC versions. > > David Daney >