This is the mail archive of the 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

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:
--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++
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/ is .dynamic at 00000074
warning: Lowest section in /usr/lib/ is .dynamic at 00000094

Breakpoint 1, w_listDepts () at

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
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:
Sent from the gdb - General forum at

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