This is the mail archive of the
mailing list for the GCC project.
RE: [PATCH - h8300] function_vector attribute in H8300 targets
- From: Jeffrey A Law <law at redhat dot com>
- To: "Asgari J. Jinia" <AsgariJ at KPITCummins dot com>
- Cc: Kazu Hirata <kazu at cs dot umass dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 27 Dec 2004 12:38:15 -0700
- Subject: RE: [PATCH - h8300] function_vector attribute in H8300 targets
- Organization: Red Hat, Inc
- References: <4A1BE23A7B777442B60F4B4916AE0F1335B89E@sohm.kpit.com>
- Reply-to: law at redhat dot com
On Fri, 2004-12-24 at 16:27 +0530, Asgari J. Jinia wrote:
> Please review the following patch to accept in FSF.
So how does this patch interact with the old code which had the linker
automatically putting these objects into the vector?
ie, for a symbol with the vector attribute we would generate
The assembler would generate a suitable relocation, the linker would
then find a slot in the function vector and insert foo's address
into the vector. The linker would then fixup the jsr instruction so
that it referenced the right entry in the function vector.
>From a quick glance, it appears your change removes that functionality
and requires the user to assign slots in the function vector explicitly.
I think it would be a *lot* better if we could support both styles.