Skip to contentSkip to conversation

linux-next: new build warnings after binutils update

DISCUSSION Stephen Rothwell 5 participants 7 messages Aug 11, 2020 – Aug 15, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After upgading some software, builds of Linus' tree now produce these warnings:

x86_64-linux-gnu-ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text'
x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE

I upgraded binutils from 2.34-8 to 2.35-1 (Debian versions).

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 9.3.0-13) 9.3.0

Any ideas?

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

(+ Arvind, Kees)

Quoted 8 lines · Stephen Rothwell

Hi all,

After upgading some software, builds of Linus' tree now produce these warnings:

x86_64-linux-gnu-ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text'
x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE

Quoted 7 lines

I upgraded binutils from 2.34-8 to 2.35-1 (Debian versions).

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 9.3.0-13) 9.3.0

Any ideas?

Arvind and I have some patches on the list that fix various relocation issues in the decompressor binary.

As far as I can tell, Arvind's patch to suppress runtime relocations
[0] addresses this exact issue.

Unfortunately, in spite of various pings and attempts to get the x86 maintainers to notice this series, it has been ignored so far. Perhaps this is a good time to merge it for -rc1/2?

[0] https://lore.kernel.org/lkml/[email protected]/

#2 lore raw
Quoted 22 lines · Ard Biesheuvel

(+ Arvind, Kees)

Quoted 8 lines · Stephen Rothwell

Hi all,

After upgading some software, builds of Linus' tree now produce these warnings:

x86_64-linux-gnu-ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text'
x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE

Quoted 7 lines

I upgraded binutils from 2.34-8 to 2.35-1 (Debian versions).

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 9.3.0-13) 9.3.0

Any ideas?

Arvind and I have some patches on the list that fix various relocation issues in the decompressor binary.

Quoted 8 lines

As far as I can tell, Arvind's patch to suppress runtime relocations
[0] addresses this exact issue.

Unfortunately, in spite of various pings and attempts to get the x86 maintainers to notice this series, it has been ignored so far. Perhaps this is a good time to merge it for -rc1/2?

[0] https://lore.kernel.org/lkml/[email protected]/

It all looked good to me but was a bit late for v5.9, will pick up after -rc1.

Thanks,

Ingo

#3 lore raw
Quoted 29 lines · Ingo Molnar
Quoted 25 lines · Ard Biesheuvel

(+ Arvind, Kees)

Quoted 8 lines · Stephen Rothwell

Hi all,

After upgading some software, builds of Linus' tree now produce these warnings:

x86_64-linux-gnu-ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text'
x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE

Quoted 7 lines

I upgraded binutils from 2.34-8 to 2.35-1 (Debian versions).

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 9.3.0-13) 9.3.0

Any ideas?

Arvind and I have some patches on the list that fix various relocation issues in the decompressor binary.

As far as I can tell, Arvind's patch to suppress runtime relocations
[0] addresses this exact issue.

Quoted 9 lines
Quoted 5 lines

Unfortunately, in spite of various pings and attempts to get the x86 maintainers to notice this series, it has been ignored so far. Perhaps this is a good time to merge it for -rc1/2?

[0] https://lore.kernel.org/lkml/[email protected]/

It all looked good to me but was a bit late for v5.9, will pick up after -rc1.

Thanks Ingo.

#4 lore raw
In reply to Ingo Molnar
Quoted 33 lines · Ingo Molnar
Quoted 29 lines · Ard Biesheuvel

(+ Arvind, Kees)

Quoted 8 lines · Stephen Rothwell

Hi all,

After upgading some software, builds of Linus' tree now produce these warnings:

x86_64-linux-gnu-ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text'
x86_64-linux-gnu-ld: warning: creating DT_TEXTREL in a PIE

Quoted 7 lines

I upgraded binutils from 2.34-8 to 2.35-1 (Debian versions).

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 9.3.0-13) 9.3.0

Any ideas?

Arvind and I have some patches on the list that fix various relocation issues in the decompressor binary.

As far as I can tell, Arvind's patch to suppress runtime relocations
[0] addresses this exact issue.

Unfortunately, in spite of various pings and attempts to get the x86 maintainers to notice this series, it has been ignored so far. Perhaps this is a good time to merge it for -rc1/2?

Quoted 7 lines
Quoted 1 line

[0] https://lore.kernel.org/lkml/[email protected]/

It all looked good to me but was a bit late for v5.9, will pick up after -rc1.

Thanks,

Good news :-).

- Sedat -

#5 lore raw
In reply to Ingo Molnar
Quoted 4 lines · Ingo Molnar
Quoted 1 line

[0] https://lore.kernel.org/lkml/[email protected]/

It all looked good to me but was a bit late for v5.9, will pick up after -rc1.

Excellent! Thank you. I'll base the orphan series on x86/boot now. Once I send a v6 (there are a few more things to tweak), can you carry that in -tip as well (it includes arm and arm64 as well, all of which depend on several asm-generic patches). Or would you prefer I carry the tree separately?

Signature · 1 line
Kees Cook
#6 lore raw
Quoted 10 lines · Kees Cook
Quoted 4 lines · Ingo Molnar
Quoted 1 line

[0] https://lore.kernel.org/lkml/[email protected]/

It all looked good to me but was a bit late for v5.9, will pick up after -rc1.

Excellent! Thank you. I'll base the orphan series on x86/boot now. Once I send a v6 (there are a few more things to tweak), can you carry that in -tip as well (it includes arm and arm64 as well, all of which depend on several asm-generic patches).

Sure, that looks the most sensible, since there's so much x86 impact. Might migrate the commits over into a more generic topic branch - started out with x86/boot to get things going.

Thanks,

Ingo