Re: unknown -z value: common-page-size=4096

2018-09-29 Thread Charlie Li
On 29/09/2018 07:36, Dimitry Andric wrote:
> You can apply this changeset from the clang700-import branch:
> 
> https://svnweb.freebsd.org/changeset/base/337325
> 
Ah, I definitely missed this revision. I ended up working around the
error by manually removing the offending bit from kern.pre.mk, which has
the same effect of this changeset.
> or just use the clang700-import branch wholesale. :-)
> 
I would, but I also update and build head irregularly and prefer to
build and run the newest code as they are committed. That, and I'm a bit
lazy to run svn merge when I update :-)

-- 
Charlie Li
Can't think of a witty .sigline today…

(This email address is for mailing list use only; replace local-part
with vishwin for off-list communication)



signature.asc
Description: OpenPGP digital signature


Re: unknown -z value: common-page-size=4096

2018-09-29 Thread Dimitry Andric
On 29 Sep 2018, at 04:08, Shawn Webb  wrote:
> 
> On Fri, Sep 28, 2018 at 10:01:31PM -0400, Charlie Li wrote:
>> I've switched to using devel/xtoolchain-llvm70 yesterday to build amd64
>> base starting with r338990, and among other issues, ld.lld70 refuses to
>> link the kernel:
>> 
>> Building /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE/kernel.full
>> --- kernel.full ---
>> linking kernel.full
>> ld.lld: error: unknown -z value: common-page-size=4096
>> ld.lld: error: unknown -z value: ifunc-noplt
>> *** [kernel.full] Error code 1
>> 
>> make[2]: stopped in /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE
>> 
>> (ARDMORE is basically GENERIC-NODEBUG, not that it matters)
>> 
>> The ifunc-noplt is a known issue, it obviously didn't make it upstream
>> in time for LLVM 7.0.0, and thus we carry the feature downstream.
>> 
>> The crux of this link error though, emaste@ quipped in PR 230604 that
>> LLD prior to 7.0.0 accepted but ignored unknown options, but now at
>> least 7.0.0 disallows unknown options entirely. Which brings up the -z
>> common-page-size=4096: has LLD been ignoring this part the whole time,
>> and is it of any meaningful use anymore (it seemed to mean something
>> with bfd)?
> 
> I noticed the same issues. I reverted parts of recent work by upstream
> FreeBSD in HardenedBSD's Cross-DSO CFI branch since that branch uses
> clang/llvm/lld 7.0.0.

You can apply this changeset from the clang700-import branch:

https://svnweb.freebsd.org/changeset/base/337325

or just use the clang700-import branch wholesale. :-)

-Dimitry



signature.asc
Description: Message signed with OpenPGP


Re: unknown -z value: common-page-size=4096

2018-09-28 Thread Shawn Webb
On Fri, Sep 28, 2018 at 10:01:31PM -0400, Charlie Li wrote:
> I've switched to using devel/xtoolchain-llvm70 yesterday to build amd64
> base starting with r338990, and among other issues, ld.lld70 refuses to
> link the kernel:
> 
> Building /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE/kernel.full
> --- kernel.full ---
> linking kernel.full
> ld.lld: error: unknown -z value: common-page-size=4096
> ld.lld: error: unknown -z value: ifunc-noplt
> *** [kernel.full] Error code 1
> 
> make[2]: stopped in /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE
> 
> (ARDMORE is basically GENERIC-NODEBUG, not that it matters)
> 
> The ifunc-noplt is a known issue, it obviously didn't make it upstream
> in time for LLVM 7.0.0, and thus we carry the feature downstream.
> 
> The crux of this link error though, emaste@ quipped in PR 230604 that
> LLD prior to 7.0.0 accepted but ignored unknown options, but now at
> least 7.0.0 disallows unknown options entirely. Which brings up the -z
> common-page-size=4096: has LLD been ignoring this part the whole time,
> and is it of any meaningful use anymore (it seemed to mean something
> with bfd)?

I noticed the same issues. I reverted parts of recent work by upstream
FreeBSD in HardenedBSD's Cross-DSO CFI branch since that branch uses
clang/llvm/lld 7.0.0.

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

Tor-ified Signal:+1 443-546-8752
Tor+XMPP+OTR:latt...@is.a.hacker.sx
GPG Key ID:  0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE


signature.asc
Description: PGP signature


unknown -z value: common-page-size=4096

2018-09-28 Thread Charlie Li
I've switched to using devel/xtoolchain-llvm70 yesterday to build amd64
base starting with r338990, and among other issues, ld.lld70 refuses to
link the kernel:

Building /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE/kernel.full
--- kernel.full ---
linking kernel.full
ld.lld: error: unknown -z value: common-page-size=4096
ld.lld: error: unknown -z value: ifunc-noplt
*** [kernel.full] Error code 1

make[2]: stopped in /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE

(ARDMORE is basically GENERIC-NODEBUG, not that it matters)

The ifunc-noplt is a known issue, it obviously didn't make it upstream
in time for LLVM 7.0.0, and thus we carry the feature downstream.

The crux of this link error though, emaste@ quipped in PR 230604 that
LLD prior to 7.0.0 accepted but ignored unknown options, but now at
least 7.0.0 disallows unknown options entirely. Which brings up the -z
common-page-size=4096: has LLD been ignoring this part the whole time,
and is it of any meaningful use anymore (it seemed to mean something
with bfd)?

-- 
Charlie Li
Can't think of a witty .sigline today…

(This email address is for mailing list use only; replace local-part
with vishwin for off-list communication)



signature.asc
Description: OpenPGP digital signature