aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-dap.c
diff options
context:
space:
mode:
authorJinyang He <hejinyang@loongson.cn>2023-09-15 11:52:14 +0800
committerliuzhensong <liuzhensong@loongson.cn>2024-02-27 11:58:33 +0800
commitfb266c9083b42d6287b2fe93a82ffe663d8f4640 (patch)
tree99ee60765091fa516de8a18701a148cdcd6fa253 /gdb/python/py-dap.c
parentb98da8583a500419c976bcfd56b80b02b1afceff (diff)
downloadbinutils-fb266c9083b42d6287b2fe93a82ffe663d8f4640.zip
binutils-fb266c9083b42d6287b2fe93a82ffe663d8f4640.tar.gz
binutils-fb266c9083b42d6287b2fe93a82ffe663d8f4640.tar.bz2
Avoid unused space in .rela.dyn if sec was discarded
The relsec size is still increased although sec is discarded, which cause a lot of unused space allocated. Avoid size increased if sec was discarded. bfd/ChangeLog: * bfd/elfnn-loongarch.c: (allocate_dynrelocs): Do not increase sreloc size when discarded_section. ld/ChangeLog: * ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp: Add test. * ld/testsuite/ld-loongarch-elf/pie_discard.d: New test. * ld/testsuite/ld-loongarch-elf/pie_discard.s: New test. * ld/testsuite/ld-loongarch-elf/pie_discard.t: New test.
Diffstat (limited to 'gdb/python/py-dap.c')
0 files changed, 0 insertions, 0 deletions