+2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
+ PROVIDE statements.
+ * testsuite/ld-scripts/provide-4.map: Update expected output.
+ * testsuite/ld-scripts/provide-5.map: Likewise.
+
2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
PR ld/22696
break;
case etree_provide:
case etree_provided:
- fprintf (config.map_file, "PROVIDE (%s, ", tree->assign.dst);
+ fprintf (config.map_file, "PROVIDE (%s = ", tree->assign.dst);
exp_print_tree (tree->assign.src);
fputc (')', config.map_file);
break;
#...
Linker script and memory map
#...
- \[!provide\] +PROVIDE \(foo, 0x1\)
- \[!provide\] +PROVIDE \(bar, 0x2\)
- 0x0+3 +PROVIDE \(baz, 0x3\)
+ \[!provide\] +PROVIDE \(foo = 0x1\)
+ \[!provide\] +PROVIDE \(bar = 0x2\)
+ 0x0+3 +PROVIDE \(baz = 0x3\)
#...
0x0+2000 +foo
- \[!provide\] +PROVIDE \(loc1, ALIGN \(\., 0x10\)\)
- 0x0+2010 +PROVIDE \(loc2, ALIGN \(\., 0x10\)\)
- \[!provide\] +PROVIDE \(loc3, \(loc1 \+ 0x20\)\)
+ \[!provide\] +PROVIDE \(loc1 = ALIGN \(\., 0x10\)\)
+ 0x0+2010 +PROVIDE \(loc2 = ALIGN \(\., 0x10\)\)
+ \[!provide\] +PROVIDE \(loc3 = \(loc1 \+ 0x20\)\)
0x0+2030 +loc4 = \(loc2 \+ 0x20\)
#...