diff options
author | Iain Sandoe <iain@codesourcery.com> | 2012-01-13 11:55:02 +0000 |
---|---|---|
committer | Iain Sandoe <iain@codesourcery.com> | 2012-01-13 11:55:02 +0000 |
commit | c3402d205655e74dda81fd58387a2d5fac870dea (patch) | |
tree | b9ce4a2fc0a8c5fb2484fb16f5d3e918fc1ab561 /gas/config/obj-macho.h | |
parent | ee5106fedefc3b2378641dbfaac0b4c5a919584e (diff) | |
download | gdb-c3402d205655e74dda81fd58387a2d5fac870dea.zip gdb-c3402d205655e74dda81fd58387a2d5fac870dea.tar.gz gdb-c3402d205655e74dda81fd58387a2d5fac870dea.tar.bz2 |
set vma on mach-o sections.
gas:
* config/obj-macho.c (obj_mach_o_set_vma_data): New type.
(obj_mach_o_set_section_vma): New.
(obj_mach_o_post_relax_hook): New.
* config/obj-macho.h (md_post_relax_hook): Define.
(obj_mach_o_post_relax_hook): Declare.
gas/testsuite:
* gas/mach-o/dysymtab-2.d: Update to include the set VMA.
* gas/mach-o/symbols-1-64.d: Likewise.
* gas/mach-o/symbols-1.d: Likewise.
* gas/mach-o/symbols-6.d: Likewise.
* gas/mach-o/zerofill-1.d: Likewise.
* gas/mach-o/zerofill-2.d: Likewise.
Diffstat (limited to 'gas/config/obj-macho.h')
-rw-r--r-- | gas/config/obj-macho.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/obj-macho.h b/gas/config/obj-macho.h index 9f1f3db..2fc5cb6 100644 --- a/gas/config/obj-macho.h +++ b/gas/config/obj-macho.h @@ -62,6 +62,9 @@ extern void obj_macho_frob_label (struct symbol *); #define obj_frob_symbol(s, punt) punt = obj_macho_frob_symbol(s) extern int obj_macho_frob_symbol (struct symbol *); +#define md_post_relax_hook obj_mach_o_post_relax_hook() +void obj_mach_o_post_relax_hook (void); + #define obj_frob_file_after_relocs obj_mach_o_frob_file_after_relocs extern void obj_mach_o_frob_file_after_relocs (void); |