Adding % directives for use with constant tables
Nick Clifton
nickc@redhat.com
Thu Oct 30 11:43:00 GMT 2003
More information about the Binutils mailing list
Thu Oct 30 11:43:00 GMT 2003
- Previous message (by thread): Adding % directives for use with constant tables
- Next message (by thread): [patch] ld speedup 1/3 (suffix merge)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Nick,
> I would like to add %data() and %insn() directives that can be used in
> constant table (ip2k port) - eg:
>
> .word %insn(foo)
> .word %data(bar)
>
> The % directives I have added in the past have been added to the operand
> parse function on a per opcode basis... How would I go about adding this
> feature either generally or specifically for const tables?
If you only need this feature for .word directives (and similar ones,
ie .short, .long etc) then you can provide your own function to parse
them. For example look at gas/config/tc-arm.c where it traps them in
the md_pseudo_table[] and then handles them in s_arm_elf_cons().
Cheers
Nick
- Previous message (by thread): Adding % directives for use with constant tables
- Next message (by thread): [patch] ld speedup 1/3 (suffix merge)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list