Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-diff-object have troubles with special ELF sections #187

Closed
marmolak opened this issue May 15, 2014 · 0 comments
Closed

create-diff-object have troubles with special ELF sections #187

marmolak opened this issue May 15, 2014 · 0 comments

Comments

@marmolak
Copy link

Hi.

When I try to compile my patch:

...
create-diff-object:
...
readdir.o: readdir.o: changed section .rela.altinstructions not selected for inclusion
readdir.o: readdir.o: changed section .fixup not selected for inclusion
readdir.o: readdir.o: changed section .rela.fixup not selected for inclusion
readdir.o: readdir.o: changed section .rela__ex_table not selected for inclusion
readdir.o: 4 unsupported section change(s)
/usr/local/libexec/kpatch/create-diff-object: unreconcilable difference

Solution from Josh:
To fix this we need to add support for 3 special sections:
.altinstructions, .fixup, __ex_table.

For full info, please read https://www.redhat.com/archives/kpatch/2014-May/msg00000.html.

@marmolak marmolak changed the title create-diff-object issue have troubles with special ELF sections create-diff-object have troubles with special ELF sections May 15, 2014
jpoimboe added a commit to jpoimboe/kpatch that referenced this issue May 23, 2014
jpoimboe added a commit to jpoimboe/kpatch that referenced this issue May 24, 2014
jpoimboe added a commit to jpoimboe/kpatch that referenced this issue May 27, 2014
jpoimboe added a commit to jpoimboe/kpatch that referenced this issue May 27, 2014
Add support for the following sections:

- .fixup
- __ex_table
- .altinstructions
- .altinstr_replacement

Fixes dynup#187.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant