Line 71: |
Line 71: |
| * Fill in the bdesc fields | | * Fill in the bdesc fields |
| ** <code>.parasite_type</code> should be set to <code>COMPEL_BLOB_CHEADER</code> | | ** <code>.parasite_type</code> should be set to <code>COMPEL_BLOB_CHEADER</code> |
− | ** <code>.hdr.mem</code> should be set to the <code>-s</code> argument of hgen | + | ** <code>.hdr.mem</code> should be set to the <code>parasite_blob</code> of hgen |
| ** <code>.hdr.bsize</code> should be set to the sizeof(this symbol) | | ** <code>.hdr.bsize</code> should be set to the sizeof(this symbol) |
− | ** <code>.hdr.nr_gotpcrel</code> should be set to the <code>-r</code> argument of hgen | + | ** <code>.hdr.nr_gotpcrel</code> should be set to the <code>parasite_nr_gotpcrel</code> of hgen |
− | ** Three offsets below should be set to respective offsets generated with the <code>-p</code> argument value | + | ** Three offsets below should be set to respective offsets generated with the <code>parasite_sym</code> value |
− | *** <code>.hdr.parasite_ip_off</code> to <code>COMPEL_H_PARASITE_HEAD(arg)</code> | + | *** <code>.hdr.parasite_ip_off</code> to <code>COMPEL_H_PARASITE_HEAD(parasite_sym)</code> |
− | *** <code>.hdr.addr_cmd_off</code> to <code>COMPEL_H_PARASITE_CMD(arg)</code> | + | *** <code>.hdr.addr_cmd_off</code> to <code>COMPEL_H_PARASITE_CMD(parasite_sym)</code> |
− | *** <code>.hdr.addr_arg_off</code> to <code>COMPEL_H_PARASITE_ARGS(arg)</code> | + | *** <code>.hdr.addr_arg_off</code> to <code>COMPEL_H_PARASITE_ARGS(paraste_sym)</code> |
− | ** <code>.hdr.relocs</code> should be set to <code>-v</code> argument (it's an array) | + | ** <code>.hdr.relocs</code> should be set to <code>parasite_relocs</code> argument (it's an array) |
| ** <code>.hdr.nr_relocs</code> should be set to the number of elements in this array (<code>sizeof(arr)/sizeof(arr[0])</code>) | | ** <code>.hdr.nr_relocs</code> should be set to the number of elements in this array (<code>sizeof(arr)/sizeof(arr[0])</code>) |
| | | |