This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Regressions on i386-pc-nto-qnx6.3.0
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Ryan Mansfield <RMansfield at qnx dot com>
- Cc: "'binutils at sourceware dot org'" <binutils at sourceware dot org>
- Date: Mon, 14 Aug 2006 10:04:08 -0700
- Subject: Re: Regressions on i386-pc-nto-qnx6.3.0
- References: <3518719F06577C4F85DA618E3C37AB9101389340@nimbus.ott.qnx.com>
On Mon, Aug 14, 2006 at 12:34:50PM -0400, Ryan Mansfield wrote:
> I noticed 4 regressions in the binutils testsuite on i386-pc-nto-qnx6.3.0.
>
> All of the failures are due to the following BFD warning:
>
> BFD: tmpdir/copyprog: warning: allocated section `.note.1' not in segment
> BFD: tmpdir/copyprog: warning: allocated section `.note.1' not in segment
>
Is there a way to reproduce it on Linux?
> I did a manual reghunt and tracked down the change to the following patch:
>
> http://sourceware.org/ml/binutils/2006-02/msg00117.html
>
> It was my understanding that a .note.1 section could have a size of 0. So
> therefore the warnings are due to the check sec_hdr->sh_size > 0 in the
> ELF_IS_SECTION_IN_SEGMENT_FILE macro.
>
> Can anyone confirm that .note.1 section can be zero sized, or comment on the
> correctness of the ELF_IS_SECTION_IN_SEGMENT_FILE?
The current linker removes the zero-sized note section from the output.
H.J.