aboutsummaryrefslogtreecommitdiff
path: root/gas/dw2gencfi.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-02 22:48:59 +0000
committerAlan Modra <amodra@gmail.com>2003-06-02 22:48:59 +0000
commited7d5d1a43104f2ed6e83c99fe9858fe335cf186 (patch)
treef998a61b75affb1b6f88cd628e07c32f6d5bf210 /gas/dw2gencfi.c
parentc483c494a07363c8f8d03dabe2a1c595f6bf025a (diff)
downloadgdb-ed7d5d1a43104f2ed6e83c99fe9858fe335cf186.zip
gdb-ed7d5d1a43104f2ed6e83c99fe9858fe335cf186.tar.gz
gdb-ed7d5d1a43104f2ed6e83c99fe9858fe335cf186.tar.bz2
* read.c (emit_expr): Set dot_value.
* dw2gencfi.c (output_fde): Remove pcrel reloc hack.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r--gas/dw2gencfi.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index ee67027..a632cd1 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -666,17 +666,9 @@ output_fde (struct fde_entry *fde, struct cie_entry *cie,
exp.X_op_symbol = cie->start_address;
emit_expr (&exp, 4); /* CIE offset */
- /* ??? Unsure why this works and the following doesn't.
- Symptom was incorrect addends to the relocation. */
-#if 1
- memset (frag_more (4), 0, 4); /* Code offset */
- fix_new (frag_now, frag_now_fix () - 4, 4,
- fde->start_address, 0, 1, BFD_RELOC_32);
-#else
exp.X_add_symbol = fde->start_address;
exp.X_op_symbol = symbol_temp_new_now ();
- emit_expr (&exp, 4);
-#endif
+ emit_expr (&exp, 4); /* Code offset */
exp.X_add_symbol = fde->end_address;
exp.X_op_symbol = fde->start_address; /* Code length */