ubsan: bfin: left shift of negative value
[deliverable/binutils-gdb.git] / gas / frags.c
index 2f21b9db200d8301b300d0c0dd58fad13c467036..f35cc80a386ed0dd6e04af32e9ba7cb520ecb437 100644 (file)
@@ -395,7 +395,12 @@ frag_now_fix_octets (void)
 addressT
 frag_now_fix (void)
 {
-  return frag_now_fix_octets () / OCTETS_PER_BYTE;
+  /* Symbols whose section has SEC_ELF_OCTETS set,
+     resolve to octets instead of target bytes.  */
+  if (now_seg->flags & SEC_OCTETS)
+    return frag_now_fix_octets ();
+  else
+    return frag_now_fix_octets () / OCTETS_PER_BYTE;
 }
 
 void
This page took 0.024858 seconds and 4 git commands to generate.