mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
Merge remote-tracking branch 'iglosiggio/fix-DW_AT_high_pc-relocation'
This commit is contained in:
@@ -3328,8 +3328,8 @@ static void dwarf_generate(void)
|
||||
saa_write32(pinfo,0); /* DW_AT_low_pc */
|
||||
saa_write32(pinforel, pinfo->datalen + 4);
|
||||
saa_write32(pinforel, ((dwarf_fsect->section + 2) << 8) + R_X86_64_32);
|
||||
saa_write32(pinforel, 0);
|
||||
saa_write32(pinfo,highaddr); /* DW_AT_high_pc */
|
||||
saa_write32(pinforel, highaddr);
|
||||
saa_write32(pinfo,0); /* DW_AT_high_pc */
|
||||
saa_write32(pinforel, pinfo->datalen + 4);
|
||||
saa_write32(pinforel, (dwarf_linesym << 8) + R_X86_64_32); /* reloc to line */
|
||||
saa_write32(pinforel, 0);
|
||||
@@ -3369,8 +3369,8 @@ static void dwarf_generate(void)
|
||||
saa_write64(pinfo,0); /* DW_AT_low_pc */
|
||||
saa_write64(pinforel, pinfo->datalen + 4);
|
||||
saa_write64(pinforel, ((uint64_t)(dwarf_fsect->section + 2) << 32) + R_X86_64_64);
|
||||
saa_write64(pinforel, 0);
|
||||
saa_write64(pinfo,highaddr); /* DW_AT_high_pc */
|
||||
saa_write64(pinforel, highaddr);
|
||||
saa_write64(pinfo,0); /* DW_AT_high_pc */
|
||||
saa_write64(pinforel, pinfo->datalen + 4);
|
||||
saa_write64(pinforel, (dwarf_linesym << 32) + R_X86_64_32); /* reloc to line */
|
||||
saa_write64(pinforel, 0);
|
||||
|
||||
Reference in New Issue
Block a user