------- Comment #14 from kargl at gcc dot gnu dot org 2010-01-04 16:13 ------- (In reply to comment #12) > COMMON symbols don't cause members to be pulled in from library archives. You > can omit "-L. -lex" from the final link altogether and get the same result: > it's unused. So the reference from bug.o to _jindx2 doesn't cause the library > archive member to be drawn into the final link. >
Comment #1 seems to contradict your assertion here. To repeat, laptop:kargl[207] gfc4x -c a2.f laptop:kargl[208] ar -cru libex.a a2.o laptop:kargl[209] gfc4x -o z a1.f -L. -lex laptop:kargl[210] ./z chars=abcdeabcdeabcdeabcdeabcde *missingBlockData* loaded common block -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42568