Improve boostrap-ubsan config (PR bootstrap/64914).
[deliverable/binutils-gdb.git] / libiberty / simple-object-xcoff.c
index 0ef2a465bcaea75cd8cd37e5852c48bd850b5395..1e3d9e01b042e6c106de0a1ee5a13d7e1e14f426 100644 (file)
@@ -606,11 +606,14 @@ simple_object_xcoff_find_sections (simple_object_read *sobj,
                      || auxent->u.xcoff64.x_csect.x_smclas != XMC_XO)
                    continue;
 
-                 x_scnlen64 = fetch_32 (aux + offsetof (union external_auxent,
-                                                        u.xcoff64.x_csect.x_scnlen_hi));
-                 x_scnlen = x_scnlen64 << 32
-                            | fetch_32 (aux + offsetof (union external_auxent,
-                                                        u.xcoff64.x_csect.x_scnlen_lo));
+                 x_scnlen64 = 
+                   fetch_32 (aux + offsetof (union external_auxent,
+                                             u.xcoff64.x_csect.x_scnlen_hi));
+                 x_scnlen = 
+                   ((x_scnlen64 << 32)
+                    | fetch_32 (aux
+                                + offsetof (union external_auxent,
+                                            u.xcoff64.x_csect.x_scnlen_lo)));
                }
              else
                {
This page took 0.026111 seconds and 4 git commands to generate.