This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: (fixed patch) pe-dll fix for exporting common symbols
- To: khan@xraylith.wisc.EDU
- Subject: Re: (fixed patch) pe-dll fix for exporting common symbols
- From: Ian Lance Taylor <ian@zembu.com>
- Date: 24 Jun 1999 19:16:39 -0400
- CC: binutils@sourceware.cygnus.com
- References: <199906242204.RAA09516@mercury.xraylith.wisc.edu>
Date: Thu, 24 Jun 1999 17:04:19 -0500
From: Mumit Khan <khan@xraylith.wisc.EDU>
I have yet to figure out how bfd is laying out common symbols, and how
I can access the info to write out the offsets into bss/common section.
The linker lays out common symbols in lang_common in ld/ldlang.c.
I believe the code you are patching is run in the after_open emulation
routine, which is before the linker has laid out common symbols. By
the time of the before_allocation emulation routine, the linker will
have laid out the common symbols (see lang_process or ldint.texinfo).
Assuming you are not doing a relocateable link, there should be no
more bfd_link_hash_common symbols after that point.
Ian