From owner-freebsd-bugs@freebsd.org Wed Feb 14 13:48:06 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D017F23BD3 for ; Wed, 14 Feb 2018 13:48:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AF9678645 for ; Wed, 14 Feb 2018 13:48:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 30C7213CF8 for ; Wed, 14 Feb 2018 13:48:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w1EDm5tw059231 for ; Wed, 14 Feb 2018 13:48:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1EDm5B1059230 for freebsd-bugs@FreeBSD.org; Wed, 14 Feb 2018 13:48:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225890] [mips] GNU 'strip' corrupts static libraries Date: Wed, 14 Feb 2018 13:48:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kpect@protonmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2018 13:48:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225890 Bug ID: 225890 Summary: [mips] GNU 'strip' corrupts static libraries Product: Base System Version: 11.1-STABLE Hardware: amd64 URL: http://bpaste.net/show/8y6wgjoHTK5tpa6qOfwN/ OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: kpect@protonmail.com CC: Jungleboogie0@gmail.com, bapt@FreeBSD.org, daniel.engberg.lists@pyret.net, dim@FreeBSD.org, emaste@freebsd.org, garga@FreeBSD.org, gnn@FreeBSD.org, kpect@protonmail.com, lidl@FreeBSD.org, na@rtfm.net, pi@FreeBSD.org, sbruno@FreeBSD.org, sson@freebsd.org, theraven@FreeBSD.org +++ This bug was initially created as a clone of Bug #191587 +++ the issue is similar to Bug #191587, 'strip' removes not requested sections $ echo 'int fun(int x){return x+42;}' > misc.c && cc -c misc.c && ar -rc mi= sc.a misc.o && cp misc.a misc2.a $ strip -R .comment misc.a $ ranlib misc.a ranlib: warning: can't find .strtab section $ readelf -e misc.a File: misc.a(misc.o) ELF Header: Magic: 7f 45 4c 46 02 01 01 09 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: FreeBSD ABI Version: 0 Type: REL (Relocatable file) Machine: Advanced Micro Devices x86-64 Version: 0x1 Entry point address: 0 Start of program headers: 0 (bytes into file) Start of section headers: 192 (bytes into file) Flags: 0 Size of this header: 64 (bytes) Size of program headers: 0 (bytes) Number of program headers: 0 Size of section headers: 64 (bytes) Number of section headers: 6 Section header string table index: 5 There are no program headers in this file. There are 6 section headers, starting at offset 0xc0: Section Headers: [Nr] Name Type Address Offset Size EntSize Flags Link Info Align [ 0] NULL 0000000000000000 00000000 0000000000000000 0000000000000000 0 0 0 [ 1] .text PROGBITS 0000000000000000 00000040 0000000000000011 0000000000000000 AX 0 0 16 [ 2] .note.GNU-stack PROGBITS 0000000000000000 00000051 0000000000000000 0000000000000000 0 0 1 [ 3] .eh_frame X86_64_UNWIND 0000000000000000 00000058 0000000000000038 0000000000000000 A 0 0 8 [ 4] .rela.eh_frame RELA 0000000000000000 00000090 0000000000000000 0000000000000018 I 0 3 8 [ 5] .shstrtab STRTAB 0000000000000000 00000090 0000000000000030 0000000000000000 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) $ readelf --string-dump .strtab misc.a File: misc.a(misc.o) --=20 You are receiving this mail because: You are the assignee for the bug.=