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

Add const qualifier (consistent with definitions in bfd) to make it compile. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions bfd/elfnn-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,15 +631,15 @@ static bfd_boolean ReleaseExportEntry(void)
return TRUE;
}

static bfd_boolean InsertImportEntry(const char *Name, Elf_Internal_Rela *Rel, bfd_vma OutOffset, bfd_boolean Collect)
static bfd_boolean InsertImportEntry(const char *Name, const Elf_Internal_Rela *Rel, bfd_vma OutOffset, bfd_boolean Collect)

{
unsigned int Index = hash_sdbm(Name);
PulpImportEntry *PtEntry = ImportEntries[Index];
PulpImportEntry *PtPrevEntry = NULL;
PulpImportRef *Ref, *PtRef;
static PulpImportEntry *LastEntry = NULL;
static Elf_Internal_Rela *LastRel = NULL;
static const Elf_Internal_Rela *LastRel = NULL;

while (PtEntry && (strcmp(PtEntry->Name, Name) != 0)) {
PtPrevEntry = PtEntry; PtEntry = PtEntry->Next;
Expand Down Expand Up @@ -1244,7 +1244,7 @@ riscv_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
struct riscv_elf_link_hash_table *htab;
Elf_Internal_Shdr *symtab_hdr;
struct elf_link_hash_entry **sym_hashes;
Elf_Internal_Rela *rel;
const Elf_Internal_Rela *rel;
asection *sreloc = NULL;

if (bfd_link_relocatable (info))
Expand Down Expand Up @@ -4126,7 +4126,7 @@ riscv_elf_object_p (bfd *abfd)
return TRUE;
}

bfd_boolean
static bfd_boolean
_bfd_riscv_elfNN_final_link (bfd *abfd, struct bfd_link_info *info)

{
Expand Down