diff options
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r-- | gold/yyscript.y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y index 0d52882..81c136a 100644 --- a/gold/yyscript.y +++ b/gold/yyscript.y @@ -861,6 +861,10 @@ exp: | SEGMENT_START '(' string ',' exp ')' { $$ = script_exp_function_segment_start($3.value, $3.length, $5); + /* We need to take note of any SEGMENT_START expressions + because they change the behaviour of -Ttext, -Tdata and + -Tbss options. */ + script_saw_segment_start_expression(closure); } | ASSERT_K '(' exp ',' string ')' { $$ = script_exp_function_assert($3, $5.value, $5.length); } |