This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Undefined reference after cgen re-org? [was Re: microblaze-tdep.o in cygwin build error]
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 25 Oct 2009 13:12:42 +0000
- Subject: Undefined reference after cgen re-org? [was Re: microblaze-tdep.o in cygwin build error]
- References: <daef60380910241729o2d91624bg670c66e65c7ae040@mail.gmail.com>
Hui Zhu wrote:
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
> warning: auto-importing has been activated without
> --enable-auto-import specified on the command line.
> This should work unless it involves constant data structures
> referencing symbols from auto-imported
> DLLs.
This bit is cygwin specific, and happens because you're using an old
toolset. Modern versions of cygwin binutils have that feature enabled
automatically; you'll need to add it to the LDFLAGS manually to avoid the
warning message.
> libgdb.a(microblaze-tdep.o): In function
> `microblaze_analyze_prologue':
> /home/hzhu/gdb/bgdbno/gdb/../../src/gdb/microblaze-tdep.c:265:
> undefined reference to `_microblaze_decode_insn'
> /home/hzhu/gdb/bgdbno/gdb/../../src/gdb/microblaze-tdep.c:281:
> undefined reference to `_microblaze_decode_insn'
This is a separate problem, and not cygwin-related; it's very likely to be
more fallout from the recent CGEN re-organisation. Doug, you out there?
cheers,
DaveK