This is the mail archive of the
mailing list for the GDB project.
Getting warning: lowest section is dynamic
- From: "biju64 (sent by Nabble.com)" <lists at nabble dot com>
- To: gdb at sources dot redhat dot com
- Date: Mon, 31 Jul 2006 02:45:59 -0700 (PDT)
- Subject: Getting warning: lowest section is dynamic
- Reply-to: biju64 <alex dot jacob at logicacmg dot com>
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
--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/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
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:
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 !
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".
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.