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

elf2flt: xtensa: fix text relocations #30

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions elf2flt.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ output_relocs (
continue;
case R_XTENSA_32:
case R_XTENSA_PLT:
goto good_32bit_resolved_reloc;
goto good_32bit_resolved_reloc_update_text;
default:
goto bad_resolved_reloc;
#else
Expand All @@ -830,6 +830,8 @@ output_relocs (
goto good_32bit_resolved_reloc;
#endif
good_32bit_resolved_reloc:
update_text = 0;
good_32bit_resolved_reloc_update_text:
if (bfd_big_endian (abs_bfd))
sym_addr =
(r_mem[0] << 24)
Expand All @@ -843,7 +845,6 @@ output_relocs (
+ (r_mem[2] << 16)
+ (r_mem[3] << 24);
relocation_needed = 1;
update_text = 0;
break;

bad_resolved_reloc:
Expand Down
Loading