Mail Archives: cygwin-developers/1998/07/04/02:22:12
Ian Lance Taylor wrote:
> I've reworked the way the linker handles grouped and orphaned
> sections. That should fix this problem.
>
Thanx! I'll try it. One more question - is anybody working on dll-aware
libbfd? The only problem to fix I see is some data structures exported by
bfd. The workaround is very simple - do not export datas (make them
static), but provide a function in bfd to return the address of data. For
example (bfd.h):
/* the absolute section */
extern const asection bfd_abs_section;
#define bfd_abs_section_ptr ((asection *) &bfd_abs_section)
must be changed to
/* the absolute section */
extern asection *bfd_abs_section_addr(void);
#define bfd_abs_section_ptr (bfd_abs_section_addr())
And the function bfd_abs_section_addr will be
asection *
bfd_abs_section_addr(void)
{
return &bfd_abs_section;
}
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
- Raw text -