Avoid ubsan bug complaining about &p->field
[deliverable/binutils-gdb.git] / ld / emultempl / pe.em
index c4c6464c3c01a7b5e2da39fc62fa084565df0abf..7e85ede3e2330f6fb4caf47ff1244bae7adb7021 100644 (file)
@@ -2151,7 +2151,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s,
                                                       NULL);
          if (after == NULL)
            /* *ABS* is always the first output section statement.  */
-           after = &lang_os_list.head->output_section_statement;
+           after = (void *) lang_os_list.head;
        }
 
       /* All sections in an executable must be aligned to a page boundary.
This page took 0.024581 seconds and 4 git commands to generate.