Print this page
11057 hidden undefined weak symbols should not leave relocations
11058 libld entrance descriptor assertions get NDEBUG check backwards

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/libld/common/entry.c
          +++ new/usr/src/cmd/sgs/libld/common/entry.c
↓ open down ↓ 464 lines elided ↑ open up ↑
 465  465                                  continue;
 466  466                  }
 467  467  #endif
 468  468                  if (phdr->p_type == PT_LOAD)
 469  469                          phdr->p_align = segalign;
 470  470  
 471  471                  if ((aplist_append(&ofl->ofl_segs, sgp,
 472  472                      AL_CNT_SEGMENTS)) == NULL)
 473  473                          return (S_ERROR);
 474  474  
 475      -#ifdef NDEBUG                   /* assert() is enabled */
      475 +#ifndef NDEBUG                  /* assert() is enabled */
 476  476                  /*
 477  477                   * Enforce the segment name rule: Any segment that can
 478  478                   * be referenced by an entrance descriptor must have
 479  479                   * a name. Any segment that cannot, must have a NULL
 480  480                   * name pointer.
 481  481                   */
 482  482                  switch (phdr->p_type) {
 483  483                  case PT_LOAD:
 484  484                  case PT_NOTE:
 485  485                  case PT_NULL:
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX