]> git.eshelyaron.com Git - emacs.git/commit
* Add assertion guarding against emitting a relocation array overflow
authorAndrea Corallo <akrl@sdf.org>
Thu, 18 Feb 2021 20:45:50 +0000 (21:45 +0100)
committerAndrea Corallo <akrl@sdf.org>
Thu, 18 Feb 2021 20:55:01 +0000 (21:55 +0100)
commit185121da6978553d538d37d6d0e67dc52e13311f
treeee03984ee706a5f065ea0509d0ca6039efd1fdb5
parentf92bb788a073c6b3ca7f188e0edea714598193fd
* Add assertion guarding against emitting a relocation array overflow

* src/comp.c (reloc_array_t): New type.
(comp_t, imm_reloc_t): Make use of 'reloc_array_t'.
(obj_to_reloc): Add an assertion not to overflow relocation
arrays.
(emit_lisp_obj_reloc_lval, emit_limple_insn)
(declare_imported_data_relocs): Make use of 'reloc_array_t'.
src/comp.c