From bfa0f69fc317703b24f6a5cc963910f94f9b31d9 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 2 Dec 2014 15:39:06 -0800 Subject: [PATCH] binutils: support code alignment to 256+ bytes --- binutils/gas/config/tc-riscv.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/binutils/gas/config/tc-riscv.c b/binutils/gas/config/tc-riscv.c index 04f4a60a..d9acbc26 100644 --- a/binutils/gas/config/tc-riscv.c +++ b/binutils/gas/config/tc-riscv.c @@ -1979,8 +1979,7 @@ s_bss (int ignore ATTRIBUTE_UNUSED) demand_empty_rest_of_line (); } -/* Align to a given power of two. .align 0 turns off the automatic - alignment used by the data creating pseudo-ops. */ +/* Align to a given power of two. */ static void s_align (int x ATTRIBUTE_UNUSED) @@ -2012,7 +2011,7 @@ s_align (int x ATTRIBUTE_UNUSED) ex.X_op = O_constant; ex.X_add_number = worst_case_nop_bytes; - fix_new_exp (frag_now, nops - frag_now->fr_literal, worst_case_nop_bytes, + fix_new_exp (frag_now, nops - frag_now->fr_literal, 0, &ex, TRUE, BFD_RELOC_RISCV_ALIGN); } else if (alignment)