Movatterモバイル変換
[0]ホーム
This is the mail archive of thebinutils@sources.redhat.commailing list for thebinutils project.
Re: PATCH: Very interesting IA64 gas bug
On Sun, Jun 08, 2003 at 01:32:25PM -0700, Ian Lance Taylor wrote:> Jim Wilson <wilson@tuliptree.org> writes:> > > On Sat, 2003-06-07 at 08:15, H. J. Lu wrote:> > > The one on my list is to fix elf_fake_sections so that type section> > > type doesn't depend on section name. We have 20 bits to use in> > > struct sec. Should I give it a shot?> > > > I suppose if you really want to try, it wouldn't hurt. I am not really> > a bfd expert, but I suspect it will be hard to get bfd to stop using> > section names. They are used in too many places in bfd. This is one of> > the reasons why Ulrich Drepper came up with libelf. libelf doesn't use> > section names for classifying sections.> > It's not especially hard to fix BFD ELF. The easy way is to add> fields to bfd_elf_section_data for the type and entry size and> whatever else you happen to need. Add ELF specific functions which> the assembler calls to set this information--along the lines of> bfd_elf_set_dt_needed_name() (well, that's called by the linker, but> the idea is the same). Have the assembler set these fields, and have> the linker and objcopy preserve them.> > Make sure that every ELF flag is analagous to a BFD section flag, and> use those.One other thing I like to support is multiple sections with the samename for SHT_GROUP:http://gcc.gnu.org/ml/gcc/2003-04/msg00214.htmlWhat is the best way to support it?H.J.
[8]ページ先頭