@scriptc/compiler 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/cc.d.ts +22 -0
- package/dist/backend/cc.js +147 -9
- package/dist/backend/cc.js.map +1 -1
- package/dist/backend/emission/emitter.js +9 -2
- package/dist/backend/emission/emitter.js.map +1 -1
- package/dist/backend/llvm/emitter.js +12 -4
- package/dist/backend/llvm/emitter.js.map +1 -1
- package/dist/backend/object-localize.d.ts +16 -0
- package/dist/backend/object-localize.js +936 -0
- package/dist/backend/object-localize.js.map +1 -0
- package/dist/backend/object-localize.test.d.ts +1 -0
- package/dist/backend/object-localize.test.js +555 -0
- package/dist/backend/object-localize.test.js.map +1 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -1
- package/dist/ir/nodes.d.ts +6 -0
- package/dist/ir/nodes.js.map +1 -1
- package/dist/library/profile.d.ts +11 -0
- package/dist/library/profile.js +79 -2
- package/dist/library/profile.js.map +1 -1
- package/package.json +2 -2
- package/surface-manifest.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Demote every defined global/weak symbol not named in `keep` to a local
|
|
2
|
+
* symbol in a relocatable ELF64 little-endian object, resolving COMDAT
|
|
3
|
+
* section groups in the same pass. The input is the combined object a
|
|
4
|
+
* relocatable link produced; the output is byte-rebuilt (fresh layout,
|
|
5
|
+
* same section content). */
|
|
6
|
+
export declare function localizeElfObject(object: Uint8Array, keep: ReadonlySet<string>): Uint8Array;
|
|
7
|
+
/** Combine a program object with the support objects it (transitively)
|
|
8
|
+
* needs into ONE COFF object, then demote every defined external outside
|
|
9
|
+
* `keep` to a static symbol. Support objects join on undefined-symbol
|
|
10
|
+
* demand — the staging-archive member semantics the other formats get from
|
|
11
|
+
* `ld -r` — so an unused member's undefined references never reach the
|
|
12
|
+
* embedder's link. x86_64 only (the one COFF target scriptc produces). */
|
|
13
|
+
export declare function mergeAndLocalizeCoffObjects(program: Uint8Array, support: readonly Uint8Array[], keep: ReadonlySet<string>, labels?: {
|
|
14
|
+
program?: string;
|
|
15
|
+
support?: readonly string[];
|
|
16
|
+
}): Uint8Array;
|