Empty section removal broke MIPS
H. J. Lu
hjl@lucon.org
Wed Apr 13 16:19:00 GMT 2005
On Wed, Apr 13, 2005 at 10:53:29AM -0400, Daniel Jacobowitz wrote:
> Assemble and link this with a mips64-linux toolchain:
>
> .section .sbss
> .align 3
> .type bar, @object
> .size bar, 0
> bar:
> .text
> .align 2
> .globl __start
> .ent __start
> .type __start, @function
> __start:
> j $31
> .end __start
>
> You'll get "nonrepresentable section on output". We try to output the local
> symbol bar, even though we have removed its section. This patch appears to
> work; tested mips64-linux-gnu via the binutils testsuite and by booting a
> kernel linked with the new linker (the previous linker could not build a UP
> Linux kernel).
>
I was thinking to add a similar patch when I submitted:
http://sourceware.org/ml/binutils/2005-04/msg00244.html
But I don't have a testcase. This one also failed on i386.
H.J.
---
.section .bss
.type bar, @object
.size bar, 0
bar:
.text
.globl _start
.type _start, @function
_start:
.long 1
.size _start, .-_start
More information about the Binutils
mailing list