Skip to content

Commit

Permalink
reorder linker script to put .dynstr after .dynsym
Browse files Browse the repository at this point in the history
Because otherwise, objcopy will reorder sections when doing a simple
copy of an executable.

Fixes #4.
  • Loading branch information
pipcet committed Mar 11, 2017
1 parent b4c3ca1 commit 648514a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ld/scripttempl/wasm32.sc
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ SECTIONS
{
*(.interp)
}
.dynstr :
{
*(.dynstr)
}
.hash : { *(.hash) }
.rela.dyn :
{
Expand All @@ -220,6 +216,10 @@ SECTIONS
{
*(.dynsym)
}
.dynstr :
{
*(.dynstr)
}
EOF

. $srcdir/scripttempl/DWARF.sc
Expand Down

0 comments on commit 648514a

Please sign in to comment.