From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: hjl@nynexst.com Cc: gas2@cygnus.com, raeburn@cygnus.com, eric@aib.com Subject: Does the ELF gas support stabs like a.out does? Date: Sun, 27 Nov 1994 16:42:00 -0000 Message-id: <9411280042.AA00282@tweedledumb.cygnus.com> References: <9411240240.AA20822@titanic.nynexst.com> X-SW-Source: 1994/msg00205.html 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