This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

Getting warning: lowest section is dynamic


Hi,
The m/c I use is Solaris running: 
SunOS hirst 5.10 Generic_118822-26 sun4u sparc SUNW,Sun-Blade-2500

I have gcc version 3.4.3 installed:
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

All works fine...but when I step into the gdb debugger (or use DDD) I get
the following two warnings:

warning: Lowest section in /usr/lib/libthread.so.1 is .dynamic at 00000074
warning: Lowest section in /usr/lib/libdl.so.1 is .dynamic at 00000094

Breakpoint 1, w_listDepts () at
/export/home/lisa100/lsa/src/web/web_depts.c:63
/export/home/lisa100/lsa/src/web/web_depts.c:63:1519:beg:0x12064

Why am I getting the 'Lowest section...' message ? How can I avoid it ?

Also, when I step through the code line by line using 'n' for next, when
it hits a particular while loop I get the following:

(gdb) n
Single stepping until exit from function w_dept_populate, 
which has no line number information.
w_listDepts () at /export/home/lisa100/lsa/src/web/web_depts.c:73

I have built all the C modules with -g flag (without any optimisations) and
I get this with both versions of gcc (3.4.3 & 4.1.1). I cannot seem to step
through the code in my while loop. I need to know what I am doing wrong or
what is causing this. As the module has been compiled with -g,  I would have
expected every line to be stepped through.

Please note that I can set breaks to one of the lines in the while loop but
the moment I say 'n' I get the above message.....

I had posted this on the gcc forum also (but they are not sure that it is a
gcc problem)...Is anyone aware of any patch in gdb/any other flags I should
be using to avoid this problem ? I have tried generating many test cases to
try and reproduce this problem but am not able to reproduce it except in
this section of the code ! 

I'm using:

GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.10".

Please help...

-- 
View this message in context: http://www.nabble.com/Getting-warning%3A-lowest-section--is-dynamic-tf2026508.html#a5572774
Sent from the gdb - General forum at Nabble.com.


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