From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 8EA4B2960D for ; Fri, 5 Apr 2024 07:06:56 +0200 (CEST) Received: (qmail 7558 invoked by uid 550); 5 Apr 2024 05:06:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 7517 invoked from network); 5 Apr 2024 05:06:52 -0000 Date: Fri, 5 Apr 2024 05:04:37 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: musl@lists.openwall.com cc: 1068350@bugs.debian.org, debian-glibc@lists.debian.org, doko@debian.org In-Reply-To: Message-ID: References: <171218457890.157989.17235252523998125898.reportbug@zelenka.debian.org> <20240404104428.GA3766212@port70.net> <20240404105408.GB3766212@port70.net> <20240404202641.GS4163@brightrain.aerifal.cx> Content-Language: de-Zsym-DE-1901-u-em-text-rg-denw-tz-utc, en-Zsym-GB-u-cu-eur-em-text-fw-mon-hc-h23-ms-metric-mu-celsius-rg-denw-tz-utc-va-posix MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [musl] Re: Bug#1068350: =?utf-8?Q?musl?= =?utf-8?Q?=3A_miscompiles_=28runtime_problems=29_on_riscv64_and_s390x_wit?= =?utf-8?Q?h_static-pie_=E2=86=92_seem?= =?utf-8?Q?s?= to be a toolchain bug after all, it does too hit glibc Markus Wichmann dixit: >can check with readelf -r what the relocation types are. If they are not >relative, they will not be processed. Gotcha! They are all R_390_RELATIVE except for: 000000045ff0 001100000016 R_390_64 0000000000042c58 u_ops + 70 000000045ff8 001100000016 R_390_64 0000000000042c58 u_ops + 0 000000047020 001100000016 R_390_64 0000000000042c58 u_ops + 80 000000047088 001100000016 R_390_64 0000000000042c58 u_ops + 80 0000000470a8 001100000016 R_390_64 0000000000042c58 u_ops + b8 000000047220 001100000016 R_390_64 0000000000042c58 u_ops + 80 000000046900 002600000016 R_390_64 0000000000015af8 c_command + 0 000000046940 000700000016 R_390_64 0000000000017238 c_exec + 0 000000046ab0 002000000016 R_390_64 0000000000016a80 c_trap + 0 000000047090 002500000016 R_390_64 00000000000430ac initvsn + 0 000000047278 005500000016 R_390_64 0000000000047438 null_string += 2 That=E2=80=99s our missing strings. >Is it possible you are linking in the wrong start file? gcc -v should >output the command line it feeds to the linker. Should be correct: /usr/libexec/gcc/s390x-linux-gnu/13/collect2 -fno-lto -dynamic-linker /lib= /ld-musl-s390x.so.1 -nostdlib -static -static -pie --no-dynamic-linker -o m= ksh /usr/lib/s390x-linux-musl/rcrt1.o /usr/lib/s390x-linux-musl/crti.o /usr= /lib/gcc/s390x-linux-gnu/13/crtbeginS.o -L/usr/lib/s390x-linux-musl -L /usr= /lib/gcc/s390x-linux-gnu/13/. -z relro -z now --as-needed -z text --eh-fram= e-hdr lalloc.o edit.o eval.o exec.o expr.o funcs.o histrap.o jobs.o lex.o m= ain.o misc.o shf.o syn.o tree.o var.o ulimit.o --start-group /usr/lib/gcc/s= 390x-linux-gnu/13/libgcc.a /usr/lib/gcc/s390x-linux-gnu/13/libgcc_eh.a -lc = --end-group /usr/lib/gcc/s390x-linux-gnu/13/crtendS.o /usr/lib/s390x-linux-= musl/crtn.o HTH & HAND, //mirabilos --=20 =E2=80=9ECool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.=E2=80=9C =09-- XTaran auf der OpenRheinRuhr, ganz begeistert (EN: =E2=80=9C[=E2=80=A6]uhr.gz is a reason to install mksh on every system= =2E=E2=80=9D)