From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 308563850415; Thu, 15 Apr 2021 05:43:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 308563850415 From: "gzjsgdsb at 163 dot com" To: glibc-bugs@sourceware.org Subject: =?UTF-8?B?W0J1ZyBsaWJjLzI3NzMzXSBOZXc6IHVzZSBfc3RhcnQgYXMgcHJv?= =?UTF-8?B?Z3JhbSBlbnRyee+8jHRoZSBwcm9ncmFtIHByaW50IG1vcmUgdGhhbiBleHBl?= =?UTF-8?B?Y3Qgb24gbWlwczY0ZWw=?= Date: Thu, 15 Apr 2021 05:43:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.28 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gzjsgdsb at 163 dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 05:43:24 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27733 Bug ID: 27733 Summary: use _start as program entry=EF=BC=8Cthe program print m= ore than expect on mips64el Product: glibc Version: 2.28 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: gzjsgdsb at 163 dot com CC: drepper.fsp at gmail dot com Target Milestone: --- 1.write test.c=20 #include #include int _start() { printf("Hello, world! "); exit(0); } 2.gcc -nostartfiles test.c 3. ./a.out (there art two output) Hello, world! Hello, world! =EF=BF=BD9 on mips64el,the bt is Breakpoint 2, __GI___libc_write (fd=3D1, buf=3D0x120014260, nbytes=3D18) at ../sysdeps/unix/sysv/linux/write.c:26 26 ../sysdeps/unix/sysv/linux/write.c: =E6=B2=A1=E6=9C=89=E9=82=A3=E4= =B8=AA=E6=96=87=E4=BB=B6=E6=88=96=E7=9B=AE=E5=BD=95. (gdb) bt #7 0x00007ffff7f235e8 in _IO_old_file_setbuf (fp=3D0x7ffff7f7e770 <_IO_std= out_>, p=3D, len=3D) at oldfileops.c:239 #8 0x00007ffff7d7e554 in _IO_unbuffer_all () at libioP.h:839 #9 _IO_cleanup () at genops.c:867 #10 0x00007ffff7ce084c in __run_exit_handlers (status=3D, listp=3D0x7ffff7f7d588 <__exit_funcs>, run_list_atexit=3D, run_dtors=3D) at exit.c:130 #11 0x00007ffff7ce09ac in __GI_exit (status=3D) at exit.c:139 #12 0x000000012000058c in __start () at test.c:9 but on x86 machion,the function _IO_old_file_setbuf is replaceed to _IO_new_file_setbuf --=20 You are receiving this mail because: You are on the CC list for the bug.=