This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

hppa64-hp-hpux11.00: invalid string offset for section .dynstr


John et al,

Many thanks for the fixing the .opd stuff.  I've encountered a new problem.

gcc is 3.1 and binutils is 020617.

gcc -c -g -I/opt/X11R6/include ximage.c -o ximage.o
gcc -c -fpic -g -I/opt/X11R6/include mandelgen.c -o mandelgen.o
/opt/dev64/bin/ld -shared -o generate.sl mandelgen.o -R/opt/X11R6/lib -L/opt/X11R6/lib -lX11
gcc ximage.o generate.sl -L/opt/X11R6/lib -Wl,-R -Wl,. -lX11 -o ximage
/opt/dev64/lib/gcc-lib/hppa64-hp-hpux11.00/3.1/../../../../hppa64-hp-hpux11.00/bin/ld: generate.sl: invalid string offset 6180 >= 129 for section
`.dynstr'

I'm having a different problem trying to compile gtk+-2.0.5.  However it is extremely complex so I have trying to create a simpler example.
libX11 was linked using the HP linker.

configure:16983: result:  -I/opt/gtk+-2.0/include/pango-1.0 -I/opt/X11R6/include -I/opt/gtk+-2.0/include/glib-2.0 -I/opt/gtk+-2.0/lib/glib-2.0/include
    -L/opt/gtk+-2.0/lib -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
configure:17006: checking for pango_context_new in -lpango-1.0
configure:17039: gcc -o conftest -g -O2 -Wall  -I/opt/gtk+-2.0/include/pango-1.0 -I/opt/X11R6/include -I/opt/gtk+-2.0/include/glib-2.0
-I/opt/gtk+-2.0/lib/glib-2.0/include     conftest.c -lpango-1.0  -L/opt/gtk+-2.0/lib -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
-lintl -liconv    -liconv -lintl -liconv >&5
/opt/dev64/lib/gcc-lib/hppa64-hp-hpux11.00/3.1/../../../../hppa64-hp-hpux11.00/bin/ld:/opt/X11R6/lib/libX11.sl.6.1: bfd_elf_get_bfd_needed_list
failed: File truncated


Here is the readelf dump of generate.sl.

(See attached file: generate.dump)

Many thanks

Ross

Attachment: generate.dump
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]