Method for obtaining program address under musl gcc compilation running environment

By obtaining the offset and real address of the dlsym function under the musl-gcc platform and combining it with preloading technology, the problem that ld_preload technology cannot replace JNI_CreateJavaVM() is solved, realizing the embedding and tracking operation and maintenance capabilities of intelligent operation and maintenance tools without modifying service code or recompiling programs.

CN117785208BActive Publication Date: 2026-07-24QIMING INFORMATION TECH
2 Cites 0 Cited by

Patent Information

Application Number
CN202311582996.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2026-07-24
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

On the musl-gcc platform, the ld_preload technology cannot replace the JNI_CreateJavaVM() function, making it impossible to achieve intelligent embedding and traceable maintenance without modifying the service code or recompiling the program.

Method used

By obtaining the offset and actual address of the dlsym function and combining it with preloading technology, the program address can be obtained on the musl-gcc platform, enabling the injection and modification of JVM startup and Java service parameters.

Benefits of technology

Without modifying the service code or recompiling the program, the intelligent operation and maintenance tool on the musl-gcc platform has achieved intelligent embedding and tracking of services, and has realized the flexible use of preloading technology by leveraging the dynamic library loading and function address redirection features.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application discloses a method for obtaining program addresses under a muslgcc compiling running environment, and steps are as follows: S1, obtaining a dlsym function offset; S2, obtaining a dlsym real address in a target service process. Through the method for obtaining program addresses under the muslgcc compiling running environment, the Preload technology is used, the jvm starting, the java service parameter injection mode, the intelligent embedding and the tracking operation and maintenance capability of the intelligent operation and maintenance tool to the service are realized in the Linux running environment, the characteristics of the dynamic library loading and the function address redirection are fully utilized, and therefore the flexible use of the preloading technology can also be realized under the musl-gcc platform.
Need to check novelty before this filing date? Find Prior Art