1. A method, comprising: performing, by one or more computers: during execution of an existing binary code representation of a software program located in a memory: identifying a patch area in the existing binary code representation, wherein the patch area comprises a portion of the existing binary code representation that is to be replaced in the memory with a binary code representation of a redirection patch, and wherein a redirection patch is a patch that comprises a jump type instruction and a target address argument for the jump type instruction; copying the portion of the existing binary code representation in the patch area from its location in the memory to another location in the memory, wherein the copy of the portion of the existing binary code representation in the other location in the memory is executable by a trap handler; determining the target address argument for the jump type instruction that is to be included in the redirection patch, wherein said determining is dependent, at least in part, on one or more characteristics of the existing binary code representation of the software program; and inserting the binary code representation of the redirection patch comprising the jump type instruction and the determined target address argument for the jump type instruction in the location of the patch area in the memory.