From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C4FA3857C42; Sun, 7 Aug 2022 14:36:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C4FA3857C42 From: "Martin.Jansa at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/29454] dl-cache.c:513: undefined reference to `strcpy' with -Og or -O1 (doesn't happen with -O2) Date: Sun, 07 Aug 2022 14:36:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Martin.Jansa at gmail 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: Message-ID: In-Reply-To: References: 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: Sun, 07 Aug 2022 14:36:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29454 --- Comment #1 from Martin Jansa --- diffoscope output when comparing elf/dl-cache.os built with -Og and O2. | /usr/src/debug/glibc/2.36-r0/git/elf/dl-cache.c:513 =E2=94=82 - call 881 <_dl_load_cache_lookup+0xa1> =E2=94=82 - R_X86_64_PLT32 memcpy-0x4 =E2=94=82 - mov %rax,%rdi =E2=94=82 + mov %rbx,%rsi =E2=94=82 + mov %r12,%rdi =E2=94=82 + call 7c9 <_dl_load_cache_lookup+0xaa> =E2=94=82 + R_X86_64_PLT32 strcpy-0x4 =E2=94=82 /usr/src/debug/glibc/2.36-r0/git/elf/dl-cache.c:514 =E2=94=82 - call 889 <_dl_load_cache_lookup+0xa9> =E2=94=82 + mov %r12,%rdi =E2=94=82 + call 7d1 <_dl_load_cache_lookup+0xb2> =E2=94=82 R_X86_64_PLT32 __strdup-0x4 And then it's also reproducible with dl-cache.os rebuilt using "-O2 -fno-builtin-strcpy" --=20 You are receiving this mail because: You are on the CC list for the bug.=