Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1482119
| From | Guenter Roeck <linux@roeck-us.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' |
| Date | 2016-09-13 05:20 +0200 |
| Message-ID | <sgMql-4me-1@gated-at.bofh.it> (permalink) |
| References | <sgHTI-1ge-31@gated-at.bofh.it> <sgLkB-3AQ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Nicholas, On 09/12/2016 07:00 PM, Nicholas Piggin wrote: > On Mon, 12 Sep 2016 15:24:43 -0700 > Guenter Roeck <linux@roeck-us.net> wrote: > >> Hi, >> >> your commit 'kbuild: allow archs to select link dead code/data elimination' >> is causing the following build failure in -next when building score:defconfig. >> >> arch/score/kernel/built-in.o: In function `work_resched': >> arch/score/kernel/entry.o:(.text+0xe84): >> relocation truncated to fit: R_SCORE_PC19 against `schedule' >> >> Reverting the commit fixes the problem. >> >> Please let me know if I can help tracking down the problem. >> In case you need a score toochain, you can find the one I use at >> http://server.roeck-us.net/toolchains/score.tgz. >> >> Thanks, >> Guenter > > It's not supposed to have any real effect unless the > option is selected, but there are a few changes to linker > script which must be causing it. > > There are two changes to vmlinux.lds.h. One is to KEEP a > few input sections, that *should* be kept anyway. The other > is to bring in additional sections into their correct output > section. > > Could you try reverting those lines of vmlinux.lds.h that > change the latter, i.e.: > > - *(.text.hot .text .text.fixup .text.unlikely) \ > + *(.text.hot .text .text.fixup .text.unlikely .text.*) \ This is the culprit. After removing " .text.*" it builds fine. Guenter
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Guenter Roeck <linux@roeck-us.net> - 2016-09-13 00:30 +0200
Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Nicholas Piggin <npiggin@gmail.com> - 2016-09-13 04:10 +0200
Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Guenter Roeck <linux@roeck-us.net> - 2016-09-13 05:20 +0200
Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Nicholas Piggin <npiggin@gmail.com> - 2016-09-13 06:00 +0200
Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Guenter Roeck <linux@roeck-us.net> - 2016-09-13 22:30 +0200
Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Nicholas Piggin <npiggin@gmail.com> - 2016-09-14 04:40 +0200
Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Guenter Roeck <linux@roeck-us.net> - 2016-09-14 21:50 +0200
Re: Build failure in -next due to 'kbuild: allow archs to select link dead code/data elimination' Michal Marek <mmarek@suse.com> - 2016-09-22 14:40 +0200
csiph-web