binutils -rDEVEL

Arkadiusz Miskiewicz misiek w pld.ORG.PL
Nie, 17 Mar 2002, 17:02:25 CET


Arkadiusz Miskiewicz <misiek w pld.ORG.PL> writes:

> Pomęczyłem już dziś H.J. Lu i obiecał, że sprawdzi.

W skrócie:

From: "H . J . Lu" <hjl w lucon.org>
Subject: Re: binutils breaks dosemu

[...]

I can duplicate the problem with dosemu 1.0.2 from www.dosemu.org. It
has something to do with the change to avoid copy relocations. ld.so
died while trying to resolve stdout. In dosemu, it is

080a194e  00006501 R_386_32          00000000   stdout
080a997f  00006501 R_386_32          00000000   stdout
080aa502  00006501 R_386_32          00000000   stdout
080cd7f9  00006501 R_386_32          00000000   stdout
080f4ee6  00006501 R_386_32          00000000   stdout
080f8633  00006501 R_386_32          00000000   stdout
080f863e  00006501 R_386_32          00000000   stdout
   101: 00000000     4 OBJECT  GLOBAL DEFAULT  UND stdout w GLIBC_2.0 (2)
  3100: 00000000     4 OBJECT  GLOBAL DEFAULT  UND stdout@@GLIBC_2.0

Normally it is

08049650  00000405 R_386_COPY        08049650   stdout
     4: 08049650     4 OBJECT  GLOBAL DEFAULT   21 stdout w GLIBC_2.0 (2)
    67: 08049650     4 OBJECT  GLOBAL DEFAULT   21 stdout@@GLIBC_2.0

I haven't found a small testcase to avoid copy reloc for stdout.


H.J.

From: Andreas Schwab <schwab w suse.de>

[...]
|> I can duplicate the problem with dosemu 1.0.2 from www.dosemu.org. It
|> has something to do with the change to avoid copy relocations. ld.so
|> died while trying to resolve stdout. In dosemu, it is

Check out a newer version of dosemu.  1.0.2 is broken in that it tries to
link ELF with a.out (as generated by as86/ld86).  The end result is an
executable with text relocations, but no DT_TEXTREL.  dosemu 1.1 does not
use as86 any more.

Andreas.

-- 
Arkadiusz Miśkiewicz   IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl   AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr



Więcej informacji o liście dyskusyjnej pld-devel-pl