+2012-03-08 Tristan Gingold <gingold@adacore.com>
+
+ * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
+ (exp_print_token): Constify.
+
2012-03-08 Alan Modra <amodra@gmail.com>
PR ld/10340
static const struct
{
token_code_type code;
- char * name;
+ const char * name;
}
table[] =
{
case DATA_SEGMENT_ALIGN:
case DATA_SEGMENT_RELRO_END:
function_like = TRUE;
+ break;
+ case SEGMENT_START:
+ /* Special handling because arguments are in reverse order and
+ the segment name is quoted. */
+ exp_print_token (tree->type.node_code, FALSE);
+ fputs (" (\"", config.map_file);
+ exp_print_tree (tree->binary.rhs);
+ fputs ("\", ", config.map_file);
+ exp_print_tree (tree->binary.lhs);
+ fputc (')', config.map_file);
+ return;
}
if (function_like)
{