The syntax for mapfiles isn't the best, but the introduction to
<a
href="http://docs.sun.com/app/docs/doc/817-1984/6mhm7pl19?a=view">Identifying
Hardware capabilities</a> shows:
<p>
<b>hwcap_1 = TOKEN | V</b><i>val</i><b> [ OVERRIDE ];</b>
<p>
Thus defining a value 0 would provide what you need:
<p>
<b>% elfdump -H foo.o | fgrep _HW_</b>
<br>[0] CA_SUNW_HW_1 0x63 [ VIS2 VIS DIV32 MUL32 ]
<br><b> % cat mapfile</b>
<br>hwcap_1 = V0x0 OVERRIDE;
<br><b> % ld -r -o null.o -Mmapfile foo.o</b>
<br><b> % elfdump -H null.o</b>
<br><b> %</b>
<p>
The Linker and Libraries manual should (and will) be updated
with an example of this use.
This message posted from opensolaris.org