This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
From: hjl@nynexst.com (H.J. Lu) Date: Wed, 23 Nov 94 21:40:24 EST It seems the ELF gas doesn't support stabs like the a.out version does. That piece code is used to put __init_misc () on the __libc_subinit list. It doesn't work with the ELF gas. That is correct. The symbol set features of a.out are not supported in ELF. I don't particularly like symbol sets, and, more importantly, they can not be efficiently supported in the ELF linker. All normal uses of symbol sets can be handled using either weak symbols or separate sections in ELF. Is there aother way to create a list using the ELF gas without create a new subsection? No. Creating a new section is the way to go. glibc uses symbol sets in various ways. Roland McGrath and I have worked out how they will be ported to ELF. You may want to ask exactly what he plans to do in glibc, and copy it. Part of it is that the linker will automatically define special symbols marking the start and end of any sections whose names can be represented as C identifiers. The symbols for section SEC are named __start_SEC and __stop_SEC. Ian