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

47 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.

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

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

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

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

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

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

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

A method for optimizing java code layout without interrupting application services

ActiveCN117270822BLittle impact on application performancelittle impact on performanceCode refactoringSoftware designParallel computingEngineering
This invention discloses a Java code layout optimization method that does not interrupt application services. The method includes: acquiring front-end bottleneck data of the application; when it is determined that code layout optimization is needed based on the front-end bottleneck data, collecting the dynamic control flow graph of the application service; calculating a new code layout based on the dynamic control flow graph; generating new code according to the new code layout; correcting relocation information in all code, that is, redirecting function calls and data references pointing to the old code to the new code. During the correction process, memory barriers and cache maintenance instructions are used to ensure the atomicity and consistency of the modification operations, so as to achieve uninterrupted application services; only reclaiming the memory space used by the old code that is no longer executed to store the new code generated in the next optimization, retaining the function code still on the call stack, so that most of the memory space can be reclaimed without interrupting application services. This method effectively alleviates the processor front-end bottleneck of Java applications and improves application performance.
Owner:ZHEJIANG UNIV

Equipment, method and device for controlling function relocation and readable storage medium

An apparatus, method, apparatus, and readable storage medium are described for controlling function relocation wherein, according to one embodiment, the apparatus includes a processor coupled with a memory storing computer program code, in one embodiment, a system includes computer program code to cause a first device to perform the following: for a first task executed by a first task control function (TCF), determining that the first TCF is to be replaced by a second TCF, where the first TCF and the second TCF are managed by mission management (MM), and for a second task executed by the first TCF, determining that the first TCF is to be replaced by the second TCF, where the first TCF and the second TCF are managed by the MM. And transmitting, to the first TCF, a first synchronization request including information of the second TCF for requesting the first TCF to transmit task execution (TE) information to the second TCF, the TE information including execution information of the first task executed by the first TCF. Therefore, the relocation from the o-TCF to the n-TCF is realized.
Owner:HUAWEI TECH CO LTD

A controller stack invocation method, device, apparatus and storage medium

The application discloses a controller stack calling method and device, equipment and storage medium, and relates to the field of industrial control, and comprises the following steps: writing preset type function data of a current execution function into a target stack space of an industrial controller, writing target function parameters into a reserved stack space in a read-only segment of a preset executable program, generating machine code through compiling, and generating a corresponding executable file through linking; determining an address of the target function parameters in the reserved stack space as a loading address of a target executable program according to a relocation code in the executable file; reading the target function parameters through the loading address, and running the current execution function by using the read target function parameters and the preset type function data, so as to execute corresponding industrial control operations. The application solves the problem that the controller cannot run when the parameter transmission occupies a space larger than the stack space by putting the function parameters into the read-only segment during compiling and accessing the read-only segment data through relocation.
Owner:HANGZHOU HOLLYSYS AUTOMATION

A method for efficient dynamic software loading based on an embedded platform

This invention relates to an efficient dynamic loading method for software based on an embedded platform, belonging to the field of embedded operating systems. The invention parses the target files of embedded software to obtain their respective symbol table information; identifies dynamic symbols in the application target files; relocates the symbols in the application target files, converting dynamic addresses to static addresses relative to the system target files; merges the symbol table of the system target files with the symbol tables of all loaded application target files, and stores this data in a linked list structure on the host computer. This invention reduces the dynamic loading work performed on resource-constrained lower-level machines, shortening the processing time and performance overhead of dynamic loading on the lower-level machine.
Owner:BEIJING INST OF COMP TECH & APPL

A method and system for kernel boot measurement and trusted verification based on U-Boot

PendingCN122634604AinitVerification
The application discloses a kind of kernel start-up measurement and trusted verification method and system based on U-Boot, it is related to embedded system security technical field.In the initialization safety check module after U-Boot starts, establish initial trusted root and empty PCR register;Determine execution address range by loading kernel image and by decompression, relocation, according to kernel, start parameter and device tree data, hierarchically calculate first, second, third type of measurement value, extended write soft PCR register;After operating system kernel starts, extract measurement result and pass to kernel, compare with preset trusted reference value, any item mismatch triggers safety strategy, start blocking, limited mode, multi-dimensional alarm.The application constructs safety check module by software TPM and software PCR, without relying on hardware trusted module can realize kernel start-up whole process trusted protection, and measurement range is comprehensive, safety mechanism is perfect and strong universality, with wide application value.
Owner:BEIJING SILICON IDEA TECHNOLOGY CO LTD

KASLR architecture design method and system based on SW64

The invention provides an SW64-based KASLR architecture design method and system. The method comprises the following steps: randomly setting a kernel running address, a module address and a linear mapping area address on an SW64 architecture; the KASLR architecture design is completed through random setting of a kernel operation address, a module address and a linear mapping area address. On one hand, specific randomization design and implementation of the kernel, the module and the initial address of the linear mapping area are covered, memory layout adjustment and design implementation, kernel page table mapping mechanism adjustment and design implementation and architecture relocation design implementation are also covered, and the system security is improved.
Owner:WUXI ADVANCED TECH RES INST

Method, device, storage medium and apparatus for loading hardened elf file

The application relates to the technical field of loading of reinforced ELF files, and discloses a loading method, a device, a storage medium and an apparatus for the reinforced ELF files. According to the application, a preset initialization function is called according to dynamic link library interface information in a reinforced ELF file; a decryption function and relocation information are obtained according to the preset initialization function; and the reinforced ELF file is decrypted and relocated according to the decryption function and the relocation information, so that the loading of the file is realized. Therefore, the dynamic link library interface information is arranged on the reinforced ELF file, the preset initialization function is called through the dynamic link library interface information, the decryption function and the relocation information are obtained, the loading of the reinforced ELF file is realized, the JNI_OnLoad function on the android platform is avoided, the loading of the reinforced ELF file of all platforms can be realized, and the compatibility of the reinforced ELF during loading is improved.
Owner:BEIJING 360 INTELLIGENT TECHNOLOGY CO LTD

A method for concealing a secret key in a module relocation table

The application provides a method for hiding a secret key in a module relocation table, comprising the following steps: selecting a memory address as a starting address in a module; generating secret key data, and splitting the secret key data into a secret key string; taking the starting address as a base address, constructing and generating a relocation table; storing the secret key string in the relocation table, constructing the relocation table based on a relocation characteristic, and hiding and storing the secret key data in the relocation table, so that the security is high.
Owner:武汉斗鱼鱼乐网络科技有限公司

Data processing method and device, computer equipment and readable storage medium

The embodiment of the invention provides a data processing method and device, computer equipment and a readable storage medium. The method comprises the steps that S function calls meeting replacement conditions are obtained from client program codes of an application client; n function calls meeting the aggregation condition and S-N function calls not meeting the aggregation condition are obtained from the S function calls, the N function calls are aggregated into aggregated function calls, and a relocation function corresponding to the target function signature is generated according to the aggregated function calls and the S-N function calls; respectively replacing the S function calls with relocation function calls to obtain replaced first package program codes and replaced sub-package program codes; and writing a relocation function in the replaced first package program code to obtain a target first package program code. According to the invention, the compiling memory of the application client can be reduced, and the stability of the application client is improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

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

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

A domestic operating system startup optimization method based on a dynamic loading mechanism

This invention discloses a startup optimization method for a domestic operating system based on a dynamic loading mechanism, comprising the following steps: module-level trimming of the operating system kernel; using the graphical configuration interface provided by Linux itself to perform overall trimming of functional modules, determining the configuration items of the minimum operating system kernel under the dynamic loading mechanism; designing a dynamic loading method for target modules and interrupt service routines, downloading modules not found in the loaded module chain to the local machine through a communication mechanism; completing the dynamic linking operation after the target file is read into memory using dependency analysis, symbol resolution, and relocation methods for the target module; and designing a dynamic unloading method for specified modules, reclaiming the storage space allocated to the module in the operating system and canceling its external references, thus achieving the reverse operation of dynamic linking. This invention can clearly define the coupled data and behaviors that need to be loaded during module startup and runtime in the operating system, shortening startup time.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Application loading method, device and equipment and computer storage medium

The invention relates to the technical field of data processing, and provides an application loading method and device, equipment and a computer storage medium. The method comprises the following steps: acquiring an ELF file of a target application program stored in a FLASH memory; analyzing program header information of the ELF file to obtain a storage position of a code segment of the target application program in the FLASH, a storage position and a size of a data segment in the FLASH, and a size of an uninitialized data segment; copying the data segments from the FLASH to the RAM according to the sizes of the data segments and the uninitialized data segments; setting an initial address of a memory space in an RAM as a gp value of a global pointer register, and performing relocation correction on address reference in the initialized data segment based on a relocation model of an ePIC ABI specification and the gp value to obtain a relocated data segment; and loading the target application program based on the storage position of the repositioned data segment and code segment in the FLASH.
Owner:CHINA MOBILE M2M +1

Data processing method and device, storage medium and electronic device

The present application discloses a data processing method and device, a storage medium, and an electronic device. The method comprises: when a target process needs to load a dynamic link library, determining the variable identifier and the starting position of the assembly code corresponding to the target thread-local storage variable that the patch function needs to access based on the code snippet associated with the patch function; searching for target relocation information with the variable identifier in the executable file based on the variable identifier; if the target relocation information is not found, modifying the assembly code corresponding to the thread-local storage variable with the same name based on the target offset to obtain the target assembly code; replacing the initial assembly code with the target assembly code, and modifying the relocation type of the target thread-local storage variable to prohibit relocation, updating and loading the dynamic link library. The present application solves the technical problem of patch function loading failure caused by the different addressing methods of thread-local storage variables in conventional dynamic mode and local executable mode.
Owner:ZHEJIANG DAHUA TECH CO LTD +1

Devices, systems, methods, and programs for dynamically deploying applications

This helps to reduce the increase in application downtime. [Solution] The system dynamically places the application in one of several domains 13, 14, or 15 to which computing resources are allocated. The system comprises a determination unit and a decision unit. The determination unit determines the resource utilization rate in each domain. The decision unit determines the relocation destination for "Application C" which is located in domain 13, where the resource utilization rate is higher than the first criterion. Based on information regarding future fluctuations in computing resource usage in each domain, the decision unit determines domain 15, where usage is not expected to increase, as the relocation destination.
Owner:RENESAS ELECTRONICS CORP