summaryrefslogtreecommitdiff
path: root/util/crossgcc/patches/binutils-2.26.1_aarch.patch
blob: 78934d4bccbf85e4775a0c7c56f3b3f42dbabf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -Naur binutils-2.26.1/gas/config/tc-aarch64.c binutils-2.26.1/gas/config/tc-aarch64.c
--- binutils-2.26.1/gas/config/tc-aarch64.c	2016-01-25 01:51:06.000000000 -0700
+++ binutils-2.26.1/gas/config/tc-aarch64.c	2016-07-14 10:05:37.667935255 -0600
@@ -1857,12 +1857,7 @@
       return;
     }

-  /* Sections are assumed to start aligned. In executable section, there is no
-     MAP_DATA symbol pending. So we only align the address during
-     MAP_DATA --> MAP_INSN transition.
-     For other sections, this is not guaranteed.  */
-  enum mstate mapstate = seg_info (now_seg)->tc_segment_info_data.mapstate;
-  if (!need_pass_2 && subseg_text_p (now_seg) && mapstate == MAP_DATA)
+  if (!need_pass_2)
     frag_align_code (2, 0);

 #ifdef OBJ_ELF
@@ -6040,14 +6035,6 @@

   init_operand_error_report ();

-  /* Sections are assumed to start aligned. In executable section, there is no
-     MAP_DATA symbol pending. So we only align the address during
-     MAP_DATA --> MAP_INSN transition.
-     For other sections, this is not guaranteed.  */
-  enum mstate mapstate = seg_info (now_seg)->tc_segment_info_data.mapstate;
-  if (!need_pass_2 && subseg_text_p (now_seg) && mapstate == MAP_DATA)
-    frag_align_code (2, 0);
-
   saved_cond = inst.cond;
   reset_aarch64_instruction (&inst);
   inst.cond = saved_cond;