Displaying 2 results from an estimated 2 matches for "lc_segment".
Did you mean:
__segment
2019 May 23
3
Proposal for Mach-O support in llvm-objcopy: section renaming
...> - If the section name is well-known, rename it to an "canonical" name [2].
> - Otherwise:
> - Rename to "<segment name>.<section name>" (the separator is `.' not `,')
> - If the segment name does not start with `_', prefix it with `LC_SEGMENT.’
Can you explain what LC_SEGMENT means here? What happens if the segment name (in the file) does not begin with a “_”?
Thanks!
MDT
>
> For example, __TEXT,__text is renamed to .text and
> __TEXT,__unwind_info is renamed to __TEXT.__unwind_info. For that
> reason, specifying a sect...
2019 May 23
2
Proposal for Mach-O support in llvm-objcopy: section renaming
...following rule [1]:
- If the section name is well-known, rename it to an "canonical" name [2].
- Otherwise:
- Rename to "<segment name>.<section name>" (the separator is `.' not `,')
- If the segment name does not start with `_', prefix it with `LC_SEGMENT.'
For example, __TEXT,__text is renamed to .text and
__TEXT,__unwind_info is renamed to __TEXT.__unwind_info. For that
reason, specifying a section in command line options is rather
nonintuitive:
WRONG: objcopy --only-secton=__TEXT,__text a.out
WRONG: objcopy --only-secton=__TEXT.__text a.out...