lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dd4e55aa-0b3e-6e18-7ec2-3bec02cafde0@kernel.org>
Date:   Mon, 21 Mar 2022 08:26:47 +0100
From:   Jiri Slaby <jirislaby@...nel.org>
To:     Helge Deller <deller@....de>,
        "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
        linux-parisc@...r.kernel.org,
        Linux kernel mailing list <linux-kernel@...r.kernel.org>,
        Martin Liška <mliska@...e.cz>,
        Andreas Schwab <schwab@...ux-m68k.org>
Subject: Re: hppa vDSO and compiler (non-)support

On 09. 03. 22, 6:48, Jiri Slaby wrote:
> Hi,
> 
> On 08. 03. 22, 15:51, Helge Deller wrote:
>> Hi Jiri,
>>
>> Thanks for testing on parisc!
>>
>> On 3/8/22 12:06, Jiri Slaby wrote:
>>> since the "parisc: Add vDSO support" commit, I can no longer 
>>> cross-build a hppa kernel. I see two issues:
>>>
>>> 1) CROSS32_COMPILE detection doesn't work here, as openSUSE provides 
>>> hppa-suse-linux-* binaries. It's easy to overcome by 
>>> "CROSS32_COMPILE=hppa-suse-linux-"
>>
>> How is it handled for other platforms like s390x?
> 
> s390 simply uses CC for vdso32:
> cmd_vdso32cc = $(CC) $(c_flags) -c -o $@ $<
> 
>> Would it make sense to add the detection for SUSE too?
> 
> Maybe.

So, could 1) be fixed on the Kconfig side? Or should I (people running 
SUSE) use "CROSS32_COMPILE=hppa-suse-linux-"?

>>> 2) openSUSE doesn't provide any libc for hppa. So gcc doesn't provide 
>>> libgcc.a and the build of vDSO fails.
>>
>> libgcc.a comes with the compiler, I don't think you need libc for that.
> 
> I was told glibc is needed to build libgcc.a.

2) was fixed on the compiler (SUSE) side. cross-hppa-gcc12-bootstrap was 
introduced -- note it's known to be a misnomer -- it should have been 
like s/-bootstrap/-baremetal/.

thanks,
-- 
js
suse labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ