Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

96 results about "Relocation" patented technology

Relocation is the process of assigning load addresses for position-dependent code and data of a program and adjusting the code and data to reflect the assigned addresses. Prior to the advent of multiprocess systems, and still in many embedded systems, the addresses for objects were absolute starting at a known location, often zero. Since multiprocessing systems dynamically link and switch between programs it became necessary to be able to relocate objects using position-independent code. A linker usually performs relocation in conjunction with symbol resolution, the process of searching files and libraries to replace symbolic references or names of libraries with actual usable addresses in memory before running a program.

Data processing method and device, storage medium and electronic equipment

ActiveCN119127345ASolve the technical problem of loading failureRemove relocation dependenciesProgram loading/initiatingExecution paradigmsComputer hardwareCode snippet
The invention discloses a data processing method and device, a storage medium and electronic equipment. The method comprises the following steps: when a target process needs to load a dynamic link library, determining a variable identifier corresponding to a target thread local storage variable needing to be accessed by a patch function and an initial position of an assembly code according to a code snippet associated with the patch function; according to the variable identifier, searching whether target relocation information with the variable identifier exists in the executable file, and if the target relocation information is not searched, modifying an assembly code corresponding to the local storage variable of the same-name thread according to the target offset to obtain a target assembly code; and replacing the initial assembly code with the target assembly code, modifying the relocation type of the local storage variable of the target thread to be relocation forbidding, and updating and loading the dynamic link library. According to the method and the device, the technical problem of patch function loading failure caused by different addressing modes of thread local storage variables in a conventional dynamic mode and a local executable mode is solved.
Owner:ZHEJIANG DAHUA TECH CO LTD +1

Diversified configurable embedded system boot loading method and device and storage medium

The invention discloses a diversified configurable embedded system boot loading method, which supports a multifunctional mode and a quick start mode, and the multifunctional mode comprises four operation stages: (1) executing first relocation, establishing a high-level language operation environment, and operating a hardware debugging user interface in a context without a system memory; (2) carrying out system memory initialization and secondary relocation, and moving an operating environment to a system memory; (3) starting the kernel of the mini operating system, wherein various advanced characteristics are supported in the starting stage; and (4) loading and starting the target operating system. And directly loading the real-time application after hardware initialization is completed in the quick start mode. According to the method, the running defects of a traditional boot loader are overcome, an independent debugging stage independent of a memory is provided to complete diagnosis and testing of hardware, the application requirements of different scenes are met through dynamic configuration, and the application prospect is wide. In addition, the invention also discloses a system boot loading device and a storage medium.
Owner:CHENGDU UNIV OF INFORMATION TECH

Software efficient dynamic loading method based on embedded platform

The invention relates to a software efficient dynamic loading method based on an embedded platform, and belongs to the field of embedded operating systems. The method comprises the following steps: analyzing a target file of embedded software to obtain respective symbol table information; confirming a dynamic symbol in the application target file; repositioning symbols in the application target file, and converting a dynamic address into a static address relative to the system target file; and combining the system target file symbol table with all the loaded application target file symbol tables, and creating a linked list structure in the upper computer for storage. According to the method, the dynamic loading work performed on the lower computer with limited performance resources is reduced, and the processing time and performance occupation of dynamic loading of the program in the lower computer are shortened.
Owner:BEIJING INST OF COMP TECH & APPL

Function name resolution in library transformation on same architecture

A computer-implemented method for transforming a library from a source operating system to a target operating system is disclosed. Thereby, the source operating system comprises an ABI, the target operating system comprising a target ABI, the target ABI being different from the source ABI, the library being implemented by a source object file that is compliant with the source application binary interface and comprising a source memory image, source symbol and source relocation information. The method comprises also creating a target memory image, that is compliant with the target application binary interface, wherein the target memory is derived from the source memory image, enriching the target memory image with an address information pointing to a variable length information, and writing the target memory image to the target object file to implement the transformed library by the target object file.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

A code processing method, device and equipment

ActiveCN114327497BPseudocodeLogic error
In order to solve the problem of low efficiency in application development and transplantation of the present application, the present application provides a code processing method, including: obtaining a first code, which is a compiled code suitable for the source platform, and then relocating the address of the variable associated with the function in the first code to obtain the logical address of the variable, and then decompiling according to the logical address of the variable and the first code to obtain a second code suitable for the target platform. On the one hand, this method realizes cross-platform decompilation and improves the efficiency of application development or transplantation; on the other hand, the variable associated with the function in the first code is relocated to solve the problem of pseudo code logic errors caused by uncertain definition and access address of the variable, thereby improving the accuracy of decompilation and the reliability of decompilation.
Owner:HUAWEI TECH CO LTD

Improvement of relocation with dedicated relocation information

Method and apparatus for improvement of relocation with dedicated relocation information are disclosed. A Session Management Function (SMF) comprises a transceiver; and a processor coupled to the transceiver, wherein the processor is configured to receive, via the transceiver, dedicated relocation information for a specific application and targeting a collection of UEs from AF or dedicated relocation information for a specific application and targeting a specific UE belonging to the collection of UEs from PCF, wherein, the dedicated relocation information is used for routing decision for traffic and / or DNS handling decision for the specific application for each UE within the collection of UEs.
Owner:LENOVO (BEIJING) LTD

Hot patch loading method and device, electronic equipment and storage medium

The invention relates to the technical field of computers, in particular to a hotfix loading method and device, electronic equipment and a storage medium so as to determine the offset of a TLS variable. Comprising the steps of compiling a patch function into a dynamic link library; obtaining a target offset of a thread local storage TLS variable in the patch function from the static link executable file, and obtaining relocation information of the TLS variable from the dynamic link library; after the patch file containing the patch function is dynamically loaded, a target memory address in the dynamic link library is determined based on the relocation information, and the target offset is stored in the target memory address; and when the to-be-repaired process is loaded to the to-be-repaired function, skipping to the patch function, and when the patch function is loaded, obtaining the target offset from the target memory address, and accessing the TLS variable of the patch function according to the target offset.
Owner:ZHEJIANG DAHUA TECH CO LTD

Data mapping method and related device

PendingCN119201785AReduce the number of writesMemory adressing/allocation/relocationAlgorithmData operations
The invention discloses a data mapping method and a related device, and the method comprises the steps: reading an FTL mapping table item according to an LBA when a data writing operation is carried out; if the content of the FTL mapping table item is FBA, the write-in frequency of the FTL mapping table item is increased by 1; if the write-in frequency of the FTL mapping table item reaches a preset frequency threshold after being increased by 1, newly adding a relocation mapping table item in the relocation mapping table, and writing the RAM of the newly added relocation mapping table item into the FTL mapping table item; and otherwise, updating the content of the FTL mapping table item into a new FBA. According to the method and the device, the corresponding relocation mapping table item is established for the LBA with more write-in times, data operation can be subsequently performed based on the relocation mapping table item, the operation times of the FTL mapping table item corresponding to the LBA address are reduced, and the problems of data exception and data loss caused by excessive wear of the SCM can be avoided on the premise of not additionally adding other SCMs.
Owner:成都芯盛集成电路有限公司

Method and system for detecting a change in memory

A method for managing an application includes: analyzing an unsigned executable file to at least infer relocation information for calculating a proper location for a symbol and generate an integrity signature for non-changing parts of the unsigned executable file; signing the unsigned executable file to obtain a signed executable file, in which the unsigned executable file is signed by adding the integrity signature into a read-only data block; and presenting the signed executable file to an administrator as the application in order to initiate deployment of the application to a database that provides computer-implemented services to a user, in which, before the user is allowed to use the application, the application checks an integrity of the application by invoking the integrity signature and without requiring an assistance from an operating system, in which the application checks the integrity at least when the application being executed in memory.
Owner:DELL PROD LP

Data Storage Device and Method for Managing a Hot Count Difference in Sub-Block Mode

A block of memory in a data storage device can be partitioned into two or more sub-blocks, where each sub-block is independent of the other sub-blocks. If the program-erase counts of the sub-blocks are sufficiently low, the same programming voltage can be used to program each of the sub-blocks. However, for higher program-erase counts, disturb effects can create issues in using the same programming voltage. With the embodiments presented herein, the programming voltage of a given sub-block can be based on the program-erase count of the sub-block. This can avoid the need to compare program-erase counts of various sub-blocks and perform a relocation operation.
Owner:SANDISK TECHNOLOGIES LLC

A linking method, device and medium for preventing dynamic link library hijacking

The embodiment of the present application discloses a linking method, device and medium for preventing dynamic link library hijacking, which belongs to the field of computer software technology and solves the problem that the existing dynamic link library detection and defense methods are difficult to deal with when facing complex attacks such as advanced persistent threats. The main program source code is compiled to generate a relocation file; the connector is called to link the relocation file with the dynamic link library through implicit linking to generate an executable file; the dynamic link library is encrypted with a private key, and the public key corresponding to the private key is stored in the custom segment of the executable file; the executable file is run, and the dynamic link library file is determined based on the link and loaded; the loaded dynamic link library file is decrypted based on the public key in the executable file, and the loading of the dynamic link library file is completed when the decryption is successful.
Owner:YUANQIXIN (SHANDONG) SEMICONDUCTOR TECHNOLOGY CO LTD

Eye mark injection to library transformation

A computer-implemented method for transforming a library from a source operating system to a target operating system is disclosed. Thereby, the source operating system includes a source ABI; the target operating system comprises a target ABI; the target ABI is different from the binary interface of the source application, and the library is realized by the source object file; the source object file conforms to the source application binary interface and includes at least a source memory image, source symbol information, and source relocation information, where the source relocation information is free of relative relocation information. The method further includes creating a target memory image, the target memory image conforming to the target application binary interface and derived from the source memory image; enriching the target memory image with fixed-length eye mark information; and writing the target memory image into the target object file.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Data relocation scheme selection for a memory system

Methods, systems, and devices for data relocation scheme selection for a memory system are described. A system may select, based on a fragmentation characteristic of data associated with a block of addresses, whether to perform a relocation associated with relocating invalid data, or to perform a relocation associated with refraining from relocating invalid data. A relocation associated with relocating invalid data may be selected for relatively more-fragmented data, which may avoid a relatively higher latency or processing load associated with evaluating validity or updating logical-to-physical mapping at a more-granular level. A relocation associated with refraining from relocating invalid data may be selected for relatively less-fragmented data, which may support increasing available space by relocating data to a physical block with available portions that may be written to, taking advantage of a relatively lower latency or processing load associated with evaluating validity or updating logical-to-physical mapping at a less-granular level.
Owner:MICRON TECHNOLOGY INC

Device, method, apparatus and readable storage medium for control function relocation

Described provides a device, method, apparatus and readable storage medium for control function relocation, where the apparatus according to an embodiment includes processor coupled with memory storing computer program codes, for causing the first device to: determine, for a first task performed by a first task control function (TCF), that the first TCF to be replaced by a second TCF, wherein the first TCF and the second TCF are managed by mission management (MM); and send, to the first TCF, a first synchronization request comprising information of the second TCF, for requesting the first TCF to send task execution (TE) information to the second TCF, wherein the TE information comprises execution information of the first task performed by the first TCF. As a result, relocation from o-TCF to n-TCF is realized.
Owner:HUAWEI TECH CO LTD

Decoding method, encoding method, code stream, decoder, encoder, and storage medium

Embodiments of the present application provide a decoding method, an encoding method, a code stream, a decoder, an encoder, and a storage medium. The decoding method comprises: at a decoding end, parsing a code stream to determine first syntax element information; when the first syntax element information indicates that a current block uses a prediction mode of intra template matching, determining a first block vector candidate list of the current block, wherein the first block vector candidate list is determined on the basis of a first candidate list constructed on the basis of template matching technology and / or a second candidate list constructed on the basis of merging candidate technology; determining a second block vector candidate list on the basis of the first block vector candidate list, wherein the second block vector candidate list comprises a relocation block vector constructed from a first candidate block vector in the first block vector candidate list; and determining a predicted value of the current block on the basis of the second block vector candidate list. In this way, the present application can improve the diversity of candidate block vectors, thereby improving the encoding and decoding efficiency.
Owner:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Program compiling and program loading method

The embodiment of the present application provides a program compiling and loading method. In the embodiment of the present application, when an application program is compiled, on one hand, the code section and the data section of a plurality of object files compiled from application source code are subjected to merging processing to obtain a target code section and a target data section, thereby reducing table header information; on the other hand, only a symbol table corresponding to a relocation table required when the application is loaded is retained, thereby reducing the space consumption of the symbol table; therefore, the size of an executable file of the application generated according to the target code section, the target data section, the relocation table and the symbol table corresponding to the relocation table is reduced, and the memory consumption when the application is loaded is reduced.
Owner:ALIBABA CLOUD COMPUTING CO LTD

Code processing method and device, electronic equipment and storage medium

The invention provides a code processing method, and relates to the technical field of artificial intelligence, in particular to the technical field of chips and the technical field of heterogeneous computing. According to the specific implementation scheme, target function codes of multiple pieces of artificial intelligence acceleration equipment are compiled, multiple to-be-processed target function relocatable target files are obtained, and the multiple pieces of artificial intelligence acceleration equipment correspond to the host end relocatable target files; obtaining a plurality of processed target function relocatable target files according to a plurality of device end executable files and a plurality of to-be-processed target function relocatable target files used for a plurality of artificial intelligence acceleration devices; and linking the host end relocatable target file and the plurality of processed target function relocatable target files to obtain a heterogeneous program executable file. The invention further provides a code processing device, electronic equipment and a storage medium.
Owner:KUNLUNXIN TECHNOLOGY (BEIJING) CO LTD

A linux kernel module cross-version binary compatibility method

PendingCN122363701ANo additional overheadGuaranteed accuracyLoad timeLinux kernel
This invention relates to a method for cross-version binary compatibility of Linux kernel modules, belonging to the field of computer operating system kernels. It includes the following steps: During the compilation phase, the compiler identifies specific keywords (__kabi_reloc_member, __kabi_check_member, __kabi_sizeof) and records instruction offsets, type identifiers, member variable name offsets, and relocation types, generating a .kabi_relocs segment. During the loading phase, the loader parses the .kabi_relocs segment, combines it with module BTF and kernel BTF information, and dynamically repairs instructions based on the relocation type. This invention achieves "compile once, run anywhere" binary compatibility for kernel modules, with the repair operation completed at load time, having no impact on runtime performance.
Owner:KYLIN CORP

Control device and program arrangement method

In an ECU (100), an arrangement determination unit (130) refers to a write count table (161) that stores a write count of data in each of areas obtained by dividing a program storage area (141) into predetermined sizes, and determines an arrangement of programs to even out data writing in the program storage area (141) as much as possible. Then, a rearrangement unit (140) executes rearrangement processing for moving each program within the program storage area (141) so as to achieve the determined arrangement.
Owner:NISSAN MOTOR CO LTD

Function name resolution in library transformations on same architecture

A computer-implemented method for transforming a library from a source operating system to a target operating system is disclosed. Thereby, the source operating system comprises an ABI, the target operating system comprises a target ABI, the target ABI is different from the source ABI, the library is implemented by a source object file, the source object file conforms to the source application binary interface and comprises a source memory image, a source symbol and source relocation information. The method further includes creating a target memory image conforming to the target application binary interface, where the target memory is derived from the source memory image; enriching the target memory image with address information directed to the variable length information; and writing the target memory image to the target object file to implement the transformed library from the target object file.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

A method for mixed construction of Rust, C and assembly based on an embedded operating system

PendingCN122285007ATaking into account reuseTaking into account scalabilityEmbedded operating systemTerm memory
This invention relates to a hybrid Rust, C, and assembly code construction method based on an embedded operating system, belonging to the field of embedded operating systems. This invention utilizes Rust's External Function Interface (FFI) and the "staticlib" and "rlib" code classes supported by the Rust compiler to align the Rust library API with the APIs of the C and assembly libraries in the embedded operating system. This aligns the Rust code with the relocatable files that can be recognized by the embedded operating system, guiding the build system to link the Rust library with the C and assembly libraries to form the final embedded operating system executable file. This invention can link Rust components with C and assembly components to form a single executable file, fully utilizing Rust's type safety and memory safety features to improve the overall security and reliability of the system, while also considering the reuse and expansion of existing code libraries.
Owner:BEIJING INST OF COMP TECH & APPL

An open instrument controller interface adaptation method and system

The application provides an open instrument controller interface adaptation method and system, specifically, by performing static analysis on an interface driver library of an instrument to be adapted, extracting a unique fingerprint of an exported function and constructing a function index, loading the driver library in an independent logical address space, and completing address relocation and symbol resolution, realizing safe residence of the driver in a user state, when a standard instruction is issued by an upper application, matching a corresponding function fingerprint according to an instruction semantic, searching the index to obtain a function entry address, and constructing a call context containing a parameter stack rule and an entry pointer, before execution, performing logical verification on the instruction through a virtual state machine, ensuring that the state transition is legal before triggering an actual hardware call, and writing return data into a protected shared buffer.
Owner:YUNZHISHANG (XIAN) INTELLIGENT TECH CO LTD

Dynamic library determination method, electronic equipment, storage medium and program product

The invention provides a dynamic library determination method, electronic equipment, a storage medium and a program product. The method comprises the following steps: in a starting stage of an executable file, for a first external symbol of the executable file, searching a first dynamic library corresponding to the first external symbol in a predetermined global symbol hash table, the global symbol hash table records a corresponding relationship between a plurality of external symbols of the executable file and a dynamic library where the plurality of external symbols are located. Therefore, in the starting stage of the executable file, the dynamic library where the external symbol of the executable file is located can be determined according to the corresponding relation recorded in the global symbol hash table, and the dynamic library does not need to be searched one by one, so that the time for searching the dynamic library where the external symbol is located can be shortened, the external symbol searching and repositioning process can be accelerated, and the efficiency of searching the external symbol is improved. Therefore, the starting efficiency of the executable file is improved, and the starting performance of the network element equipment is accelerated.
Owner:ZTE CORP

Function name resolution in library transformation on same architecture

A computer-implemented method for transforming a library from a source operating system to a target operating system is disclosed. Thereby, the source operating system comprises an application binary interface (ABI), the target operating system comprising a target ABI, the target ABI being different from the source ABI, the library being implemented by a source object file that is compliant with the source ABI and comprising a source memory image, source symbol and source relocation information. The method comprises also creating a target memory image, that is compliant with the target ABI, wherein the target memory is derived from the source memory image, enriching the target memory image with an address information pointing to a variable length information, and writing the target memory image to the target object file to implement the transformed library by the target object file.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION

Communication of data relocation information by storage device to host to improve system performance

An apparatus comprises a controller comprising an interface comprising circuitry to communicate with a host computing device; and a relocation manager comprising circuitry, the relocation manager to provide, for the host computing device, an identification of a plurality of data blocks to be relocated within a non-volatile memory; and relocate at least a subset of the plurality of data blocks in accordance with a directive provided by the host computing device in response to the identification of the plurality of data blocks to be relocated.
Owner:SK HYNIX NAND PRODUCT SOLUTIONS CORP

Function name resolution in library transformation on same architecture

PCT designated stage expiredWO2024260806A1Binary to binaryLink editingComputer hardwareTerm memory
A computer-implemented method for transforming a library from a source operating system to a target operating system is disclosed. Thereby, the source operating system comprises an ABI, the target operating system comprising a target ABI, the target ABI being different from the source ABI, the library being implemented by a source object file that is compliant with the source application binary interface and comprising a source memory image, source symbol and source relocation information. The method comprises also creating a target memory image, that is compliant with the target application binary interface, wherein the target memory is derived from the source memory image, enriching the target memory image with an address information pointing to a variable length information, and writing the target memory image to the target object file to implement the transformed library by the target object file.
Owner:INTERNATIONAL BUSINESS MACHINE CORPORATION +1

Selecting data relocation operations based on an energy threshold and a performance threshold

A data storage device includes a relocation management system that determines whether to perform a relocation operation based on an operating temperature, performance metrics and / or energy metrics associated with the data storage device. The relocation management system uses the operating temperature to identify a performance threshold and an energy threshold. Each threshold indicates whether the relocation operation is a first relocation method or a second relocation method. If the validity count of a memory block included in the relocation operation is below each threshold, the first relocation method is selected. If the validity count of the memory block is above both thresholds, the second relocation method is selected. However, if the validity count of the memory block is in a tradeoff range, the relocation management system selects a relocation method based on a tradeoff between performance metrics and energy consumption metrics.
Owner:SANDISK TECHNOLOGIES LLC

A code relocation method and apparatus

The present disclosure provides a code relocation method and device, which first acquires a target file to be relocated, and reads a load command list corresponding to target code from the target file; wherein the target file is used to generate an executable file through static linking; then, based on the load command list, a relocation information list corresponding to the target code is found from the target file; thereafter, based on the relocation information list, a target address calculation method and an address parameter of the target code are determined; finally, the address parameter is calculated by using the target address calculation method, to obtain address information of the target code after relocation. The present disclosure determines the target address calculation method and the address parameter of the target code through the relocation information list, calculates the address parameter by using the target address calculation method, and obtains the address information after relocation, without static linking, to determine the address information of the target code.
Owner:DOUYIN VISION CO LTD

Object reference relocation method and device, electronic equipment and storage medium

The embodiment of the invention discloses an object reference relocation method and device, electronic equipment and a storage medium. The method comprises the steps that if a first intermediate instruction is a security point type instruction, an active value mapping table corresponding to the first intermediate instruction is obtained, and the first intermediate instruction is an intermediate instruction of a first format corresponding to a to-be-compiled function; translating the first intermediate instruction into a second intermediate instruction, wherein the second intermediate instruction is an intermediate instruction in a second format; if the second intermediate instruction is a target instruction, a GC map instruction is emitted, and the GC map instruction is used for recording active object reference information included in the active value mapping table; based on the active object reference information, transmitting a relocation instruction to perform a relocation operation on each active object reference based on the relocation instruction, the relocation instruction comprising a new value and an old value of each active object reference, the relocation operation is used for replacing the old value referenced by each active object with a new value.
Owner:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Dynamic link library memory large-page method and system

The invention relates to a dynamic link library memory large-page method and system, and belongs to the technical field of computers. The invention provides a dynamic link library memory large-page method in the first aspect. The method comprises the steps that ELF files of one or more dynamic link libraries are obtained; compiling and linking the ELF file, and recording relocation information; and carrying out migration and fusion on the ELF file by utilizing the relocation information. According to the method, the limitation of an Ali cloud code large page technology is broken through, all dynamic link libraries can be actively upgraded into large pages, the iTLB miss of a program is further reduced, the 2MB iTLB utilization rate of a CPU is increased, the problem of memory fragmentation or memory expansion is avoided, and the memory utilization efficiency is improved.
Owner:PEKING UNIV