Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607974 - =sys-kernel/hardened-sources-4.8.17-r2: build fails with gold linker
Summary: =sys-kernel/hardened-sources-4.8.17-r2: build fails with gold linker
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-02 03:17 UTC by Michael Orlitzky
Modified: 2018-01-30 10:08 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gold-build.log (gold-build.log,9.29 KB, text/plain)
2017-02-02 03:17 UTC, Michael Orlitzky
Details
kernel-config.txt (kernel-config.txt,94.55 KB, text/plain)
2017-02-02 03:17 UTC, Michael Orlitzky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2017-02-02 03:17:02 UTC
Created attachment 462184 [details]
gold-build.log

I have my ld set to ld.gold usually, and I've noticed this failure before but ignored it:

  ...
    CC      init/calibrate.o
    CC      init/init_task.o
    LD      init/built-in.o
  ld: error: init/mounts.o: multiple definition of '__rap_hash_shmem_init'

It happens on both my desktop and laptop, both ~amd64. Build log and kernel config attached.
Comment 1 Michael Orlitzky gentoo-dev 2017-02-02 03:17:37 UTC
Created attachment 462186 [details]
kernel-config.txt
Comment 2 Michael Orlitzky gentoo-dev 2017-11-12 03:35:45 UTC
I moved this issue to the minipli sources, since that's probably where I'll wind up eventually:

https://github.com/minipli/linux-unofficial_grsec/issues/12
Comment 3 Michael Orlitzky gentoo-dev 2018-01-30 00:40:33 UTC
For the record, this turned out to be a linker issue. The gold linker was rejecting multiple symbols that shared the same absolute value, and has been patched to accept them:

https://sourceware.org/ml/binutils/2017-11/msg00543.html