Skip to content

memset symbol #8

Description

@Dragorn421

I am only using mq debug so I didn't check other linker scripts but it would be a good idea to do so.

standard memset

(man memset): void *memset(void *s, int c, size_t n);

fills the first n bytes of the memory area pointed to by s with the constant byte c.

oot memset

there are two implementations:
void Lib_MemSet(u8* dest, size_t size, u8 val); (unlike the standard)
void* MemSet(void* dest, s32 val, s32 size); (like the standard)

in z64hdr

https://github.com/turpaan64/z64hdr/blob/ba7ce14e23c342a6336bb93a22d24e3ee0485d61/oot_mq_debug/syms.ld#L787-L788
https://github.com/turpaan64/z64hdr/blob/ba7ce14e23c342a6336bb93a22d24e3ee0485d61/oot_mq_debug/syms.ld#L2842

the addresses are accurate, but memset = Lib_MemSet is an issue since they use a different prototype
memset = MemSet would be better?

But I'm not sure why memset is even defined in the first place

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions