This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Empty section removal broke MIPS
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 13 Apr 2005 09:18:37 -0700
- Subject: Re: Empty section removal broke MIPS
- References: <20050413145329.GA22768@nevyn.them.org>
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