Bug 1125 - Make ELF Reader 'jogamp.common.os.elf' Stateless
Summary: Make ELF Reader 'jogamp.common.os.elf' Stateless
Status: RESOLVED FIXED
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2.3.0
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks: 1122 1126
  Show dependency treegraph
 
Reported: 2015-02-01 05:18 CET by Sven Gothel
Modified: 2019-03-29 17:54 CET (History)
0 users

See Also:
Type: ---
SCM Refs:
a3f2d08801c5a54048faca52f422bcededf81b2a
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2015-02-01 05:18:29 CET
ELF Reader 'jogamp.common.os.elf' currently uses
Platform's pre-determined OS_TYPE and CPUType.

It also uses the host platforms MachineDescription,
hence can not read ELF files from other machines.

This also forbids Platform to determine CPUType etc
w/o having a valid 'os.arch' property.

+++

ElfHeader should be split in 
  - ElfHeaderPart1 (CPUType independent)
  - ElfHeaderPart2 (CPUType dependent)

Fix shall make the ELF Reader self containing
by only using ELF CPUType data, etc.

This requires customization of struct parsing,
where MachineDescription.Static index shall be 
  - defined in ElfHeaderPart1 using e_Ident's CPUType.
  - used in ElfHeaderPart2 and all its struct types.
Comment 1 Sven Gothel 2015-02-01 05:24:51 CET
a3f2d08801c5a54048faca52f422bcededf81b2a
  - Fixed as described