[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Incorrect handling of NOLOAD by ld version 2.11.2 (elf).
From: |
Sergei Organov |
Subject: |
Incorrect handling of NOLOAD by ld version 2.11.2 (elf). |
Date: |
13 Feb 2002 21:14:54 +0300 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/20.4 (Emerald) |
It seems that ld version 2.11.2 incorrectly handles NOLOAD output section type
specification when input section(s) do contain data. Neither 2.9.5 nor 2.10
have this problem.
Running "makeit" script from attached testcase I observe the following
output. Note that output section ".sect" does have "LOAD" and "CONTENTS"
attributes when linked using 2.11.2 while I believe it shouldn't (and it
doesn't when earlier version of ld is used).
$ ./makeit
Linux falcon 2.2.14 #2 SMP Sat Apr 15 13:24:18 MSD 2000 i686 unknown
GNU ld version 2.11.2 (with BFD 2.11.2)
Supported emulations:
elf_i386
i386linux
opened script file ./linker.cmd
attempt to open tmp.o succeeded
tmp.o
tmp1.o: file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .sect 0000004b 00000000 00000000 00001000 2**2
CONTENTS, ALLOC, LOAD, CODE
GNU ld version 2.9.5 (with BFD 2.9.5.0.31)
Supported emulations:
elf_i386
i386linux
opened script file ./linker.cmd
attempt to open tmp.o succeeded
tmp.o
tmp1.o: file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .sect 0000004b 00000000 00000000 00001000 2**2
ALLOC, CODE
$
Binutils 2.11.2 have been built from sources obtained from anonymous CVS
:pserver:address@hidden:/cvs/src
using
cd ~/cygnus/binutils
cvs -f update -P -d -r binutils-2_11_2
then built and installed using
cd ~/build
~/cygnus/binutils/configure -v --prefix=/home/osv/try --disable-nls
make CFLAGS=-O2 CFLAGS_FOR_TARGET=-O2
make CFLAGS=-O2 CFLAGS_FOR_TARGET=-O2 install
ld-noload-bug.tgz
Description: Testcase for NOLOAD bug.
- Incorrect handling of NOLOAD by ld version 2.11.2 (elf).,
Sergei Organov <=