This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

incremental link does not work with static vars


when i try to link incrementally (ld -r) sources with static variables
defined, i get following errors:

MORESUBS.o(.bss+0x400000):bugd.c: multiple definition of `_bss_start__'
SUBS.o(.bss+0x400000):bugb.c: first defined here
MORESUBS.o(.bss+0x400004):bugd.c: multiple definition of `_bss_end__'
SUBS.o(.bss+0x400004):bugb.c: first defined here
make: *** [all] Error 1

ld --version reports: GNU ld cygnus-2.8.1

the source that led to the problem is attached below.

is there any workaround available?

best wishes,
alex.

ld-r_bug.zip (ZIP archive)


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