Changeset 3750 for branches/libc-0.6/src


Ignore:
Timestamp:
Mar 4, 2012, 8:02:34 PM (13 years ago)
Author:
bird
Message:

0.6/ld: Backported r3749 which makes ld align .text on a SSE friendly 16-byte boundrary (constants goes into text). Fixes #234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/src/ld/ld.c

    r2513 r3750  
    5959
    6060/* We need .data of every module aligned to at least 16 bound
    61    in order to support the alignments required by SSE */
     61   in order to support the alignments required by SSE.
     62   Ditto for constants in .text. */
    6263#define SECTION_ALIGN           16
    6364#define SECTION_ALIGN_MASK      (SECTION_ALIGN-1)
     
    29502951  entry->text_start_address = text_size;
    29512952  /* If there were any vectors, we need to chop them off */
    2952   text_size += entry->text_size;
     2953  text_size += (entry->text_size + SECTION_ALIGN_MASK) & ~SECTION_ALIGN_MASK;
    29532954  entry->data_start_address = data_size;
    29542955  data_size += (entry->data_size + SECTION_ALIGN_MASK) & ~SECTION_ALIGN_MASK;
Note: See TracChangeset for help on using the changeset viewer.