Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 391899 | Differences between
and this patch

Collapse All | Expand All

(-)a/ld/scripttempl/elf.sc (-2 / +4 lines)
Lines 225-232 Link Here
225
if test "${ENABLE_INITFINI_ARRAY}" = "yes"; then
225
if test "${ENABLE_INITFINI_ARRAY}" = "yes"; then
226
  SORT_INIT_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))"
226
  SORT_INIT_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))"
227
  SORT_FINI_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))"
227
  SORT_FINI_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))"
228
  CTORS_IN_INIT_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))"
228
  CTORS_IN_INIT_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtbeginTS.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))"
229
  DTORS_IN_FINI_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))"
229
  DTORS_IN_FINI_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtbeginTS.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))"
230
else
230
else
231
  SORT_INIT_ARRAY="KEEP (*(SORT(.init_array.*)))"
231
  SORT_INIT_ARRAY="KEEP (*(SORT(.init_array.*)))"
232
  SORT_FINI_ARRAY="KEEP (*(SORT(.fini_array.*)))"
232
  SORT_FINI_ARRAY="KEEP (*(SORT(.fini_array.*)))"
Lines 264-269 Link Here
264
264
265
    KEEP (*crtbegin.o(.ctors))
265
    KEEP (*crtbegin.o(.ctors))
266
    KEEP (*crtbegin?.o(.ctors))
266
    KEEP (*crtbegin?.o(.ctors))
267
    KEEP (*crtbeginTS.o(.ctors))
267
268
268
    /* We don't want to include the .ctor section from
269
    /* We don't want to include the .ctor section from
269
       the crtend.o file until after the sorted ctors.
270
       the crtend.o file until after the sorted ctors.
Lines 280-285 Link Here
280
    ${CONSTRUCTING+${DTOR_START}}
281
    ${CONSTRUCTING+${DTOR_START}}
281
    KEEP (*crtbegin.o(.dtors))
282
    KEEP (*crtbegin.o(.dtors))
282
    KEEP (*crtbegin?.o(.dtors))
283
    KEEP (*crtbegin?.o(.dtors))
284
    KEEP (*crtbeginTS.o(.ctors))
283
    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))
285
    KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))
284
    KEEP (*(SORT(.dtors.*)))
286
    KEEP (*(SORT(.dtors.*)))
285
    KEEP (*(.dtors))
287
    KEEP (*(.dtors))

Return to bug 391899