From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: Franz.Sirl-kernel@lauterbach.com Cc: gas2@cygnus.com Subject: Re: make check problems on powerpc-unknown-linux-gnu Date: Wed, 24 Mar 1999 19:48:00 -0000 Message-id: <199903250345.TAA22602@rtl.cygnus.com> References: <4.2.0.32.19990325002220.03ae7f00@mail.lauterbach.com> X-SW-Source: 1999/msg00037.html Date: Thu, 25 Mar 1999 00:36:05 +0100 From: Franz Sirl Running /home/fsirl/BUILD/gas-990324/ld/testsuite/ld-shared/shared.exp ... /home/fsirl/BUILD/gas-990324/ld/ld-new -o tmpdir/shnp.so -shared -T /home/fsirl/BUILD/gas-990324/ld/testsuite/ld-shared/elf-offset.ld tmpdir/sh1np. o tmpdir/sh2np.o /home/fsirl/BUILD/gas-990324/ld/ld-new -m elf32ppc -o tmpdir/shnp -dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/ppc -redhat-linux/egcs-2.91.66/crtbegin.o -rpath tmpdir tmpdir/mainnp.o tmpdir/shnp.so /usr/lib/gcc-lib/ppc-redhat-linux/egcs-2.91.66/libgcc.a -lc /usr /lib/gcc-lib/ppc-redhat-linux/egcs-2.91.66/libgcc.a /usr/lib/gcc-lib/ppc-redhat-linux/egcs-2.91.66/crtend.o /usr/lib/crtn.o tmpdir/shnp >tmpdir/shnp.out tmpdir/shnp: error in loading shared libraries: tmpdir/shnp.so: program headers not contained in any loaded segment FAIL: shared (non PIC, load offset) This one is the only serious error. It's worth investigating why this is happening. Do other people using PowerPC GNU/Linux see this as well? On the last on the only special thing about shnp.so I noticed is the following readelf output: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x010000 0x00100000 0x00100000 0x017d0 0x017d0 RWE 0x10000 DYNAMIC 0x01176c 0x0010176c 0x0010176c 0x00050 0x00050 RW 0x4 AFAI remember there are usually 2 LOAD entries here, or? Yes, there usually are. However, it is not a requirement. Ian